home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / gnu / gscript / gs261s.zoo / atari / makefile < prev    next >
Encoding:
Makefile  |  1993-09-22  |  70.5 KB  |  1,994 lines

  1. #    Copyright (C) 1989, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  2. #
  3. # This file is part of Ghostscript.
  4. #
  5. # Ghostscript is distributed in the hope that it will be useful, but
  6. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  7. # to anyone for the consequences of using it or for whether it serves any
  8. # particular purpose or works at all, unless he says so in writing.  Refer
  9. # to the Ghostscript General Public License for full details.
  10. #
  11. # Everyone is granted permission to copy, modify and redistribute
  12. # Ghostscript, but only under the conditions described in the Ghostscript
  13. # General Public License.  A copy of this license is supposed to have been
  14. # given to you along with Ghostscript so you can know your rights and
  15. # responsibilities.  It should be in a file named COPYING.  Among other
  16. # things, the copyright notice and this notice must be preserved on all
  17. # copies.
  18.  
  19. # Makefile for Ghostscript, Atari ST TOS/gcc configuration.
  20. # Hacked from the Unix/gcc/X11 makefile.
  21. # Note: this makefile assumes you are using gcc in ANSI mode.
  22.  
  23. # ------------------------------- Options ------------------------------- #
  24.  
  25. ####### The following are the only parts of the file you should need to edit.
  26.  
  27. # ------ Generic options ------ #
  28.  
  29. # Define the installation commands and target directories for
  30. # executables and files.  Only relevant to `make install'.
  31.  
  32. INSTALL = install -c
  33. INSTALL_PROGRAM = $(INSTALL) -m 775
  34. INSTALL_DATA = $(INSTALL) -m 664
  35.  
  36. prefix = f:\\\gs
  37. exec_prefix = $(prefix)
  38. bindir = $(exec_prefix)
  39. datadir = $(prefix)
  40. gsdatadir = $(datadir)
  41.  
  42. # Define the default directory/ies for the runtime
  43. # initialization and font files.  Separate multiple directories with a :.
  44.  
  45. GS_LIB_DEFAULT=.,$(gsdatadir),$(gsdatadir)\\\ps,$(gsdatadir)\\\fonts
  46.  
  47. # Define the name of the Ghostscript initialization file.
  48. # (There is no reason to change this.)
  49.  
  50. GS_INIT=gs_init.ps
  51.  
  52. # Choose generic configuration options.
  53.  
  54. # -DDEBUG
  55. #    includes debugging features (-Z switch) in the code.
  56. #      Code runs substantially slower even if no debugging switches
  57. #      are set.
  58. # -DNOPRIVATE
  59. #    makes private (static) procedures and variables public,
  60. #      so they are visible to the debugger and profiler.
  61. #      No execution time or space penalty.
  62.  
  63. GENOPT=
  64.  
  65. # Define the name of the executable file.
  66.  
  67. GS=gs
  68.  
  69. # ------ Platform-specific options ------ #
  70.  
  71. # Define the name of the C compiler.
  72.  
  73. CC=gcc
  74.  
  75. # Define the other compilation flags.
  76. # Add -DBSD4_2 for 4.2bsd systems.
  77. # Add -DUSG (GNU convention) or -DSYSV for System V or DG/UX.
  78. # Add -DSYSV -D__SVR3 for SCO ODT, ISC Unix 2.2 or before,
  79. #   or any System III Unix, or System V release 3-or-older Unix.
  80. # Add -DSVR4 (not -DSYSV) for System V release 4.
  81. # XCFLAGS can be set from the command line.
  82. # We don't include -ansi, because this gets in the way of the platform-
  83. #   specific stuff that <math.h> typically needs; nevertheless, we expect
  84. #   gcc to accept ANSI-style function prototypes and function definitions.
  85.  
  86. #CFLAGS=-g -O $(XCFLAGS)
  87. CFLAGS=-O $(XCFLAGS)
  88.  
  89. # Define platform flags for ld.
  90. # SunOS and some others want -X; Ultrix wants -x.
  91. # SunOS 4.n may need -Bstatic.
  92. # XLDFLAGS can be set from the command line.
  93.  
  94. LDFLAGS=$(XLDFLAGS)
  95.  
  96. # Define any extra libraries to link into the executable.
  97. # ISC Unix 2.2 wants -linet.
  98. # SCO Unix needs -lsocket if you aren't including the X11 driver.
  99. # (Libraries required by individual drivers are handled automatically.)
  100.  
  101. EXTRALIBS=-lgem
  102.  
  103. # Define the include switch(es) for the X11 header files.
  104. # This can be null if handled in some other way (e.g., the files are
  105. # in /usr/include, or the directory is supplied by an environment variable).
  106. # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
  107. # not in $(XINCLUDE).
  108.  
  109. #XINCLUDE=-I/usr/local/X/include
  110.  
  111. # Define the directory/ies for the X11 library files.
  112. # This can be null if these files are in the default linker search path.
  113.  
  114. #XLIBDIRS=-L/usr/local/X/lib
  115.  
  116. # ------ Devices and features ------ #
  117.  
  118. # Choose the language feature(s) to include.  See gs.mak for details.
  119.  
  120. FEATURE_DEVS=filter.dev dps.dev level2.dev
  121.  
  122. # Choose the device(s) to include.  See devs.mak for details.
  123.  
  124. DEVICE_DEVS=stvdi.dev slm.dev gemimg.dev djet500.dev djet500c.dev \
  125.     laserjet.dev bj10e.dev escp2.dev epson.dev eps9high.dev \
  126.     epsonc.dev necp6.dev gifmono.dev gif8.dev pbmraw.dev ppmraw.dev \
  127.  
  128. # ---------------------------- End of options --------------------------- #
  129.  
  130. # Define the name of the makefile -- used in dependencies.
  131.  
  132. MAKEFILE=makefile
  133.  
  134. # Define the ANSI-to-K&R dependency.  (gcc accepts ANSI syntax.)
  135.  
  136. AK=
  137.  
  138. # Define the compilation rules and flags.
  139.  
  140. CCC=$(CC) $(CCFLAGS) -c
  141.  
  142. # --------------------------- Generic makefile ---------------------------- #
  143.  
  144. # The remainder of the makefile (unixhead.mak, gs.mak, devs.mak, unixtail.mak)
  145. # is generic.  tar_cat concatenates all these together.
  146. #    Copyright (C) 1990, 1991, 1993 Aladdin Enterprises.  All rights reserved.
  147. #
  148. # This file is part of Ghostscript.
  149. #
  150. # Ghostscript is distributed in the hope that it will be useful, but
  151. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  152. # to anyone for the consequences of using it or for whether it serves any
  153. # particular purpose or works at all, unless he says so in writing.  Refer
  154. # to the Ghostscript General Public License for full details.
  155. #
  156. # Everyone is granted permission to copy, modify and redistribute
  157. # Ghostscript, but only under the conditions described in the Ghostscript
  158. # General Public License.  A copy of this license is supposed to have been
  159. # given to you along with Ghostscript so you can know your rights and
  160. # responsibilities.  It should be in a file named COPYING.  Among other
  161. # things, the copyright notice and this notice must be preserved on all
  162. # copies.
  163.  
  164. # Partial makefile for Ghostscript, common to all Unix configurations.
  165.  
  166. # This part of the makefile gets inserted after the compiler-specific part
  167. # (xxx-head.mak) and before gs.mak and devs.mak.
  168.  
  169. # ----------------------------- Generic stuff ----------------------------- #
  170.  
  171. # Define the platform name.  For a "stock" System V platform,
  172. # use sysv_ instead of unix_.
  173.  
  174. PLATFORM=atari_
  175.  
  176. # Define the extensions for the object and executable files.
  177.  
  178. OBJ=o
  179. XE=.ttp
  180.  
  181. # Define the current directory prefix, shell quote string, and shell names.
  182.  
  183.  
  184. EXP=.\\
  185. QQ=\"
  186. SHELL=c:\\bin\\sh
  187. SH=$(SHELL)
  188. SHP=$(SH) $(EXP)
  189.  
  190. # Define the compilation rules and flags.
  191.  
  192. CCFLAGS=$(GENOPT) $(CFLAGS)
  193.  
  194. .c.o: $(AK)
  195.     $(CCC) $*.c
  196.  
  197. CCCF=$(CCC)
  198. CCD=$(CCC)
  199. CCINT=$(CCC)
  200. #    Copyright (C) 1989, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  201. #
  202. # This file is part of Ghostscript.
  203. #
  204. # Ghostscript is distributed in the hope that it will be useful, but
  205. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  206. # to anyone for the consequences of using it or for whether it serves any
  207. # particular purpose or works at all, unless he says so in writing.  Refer
  208. # to the Ghostscript General Public License for full details.
  209. #
  210. # Everyone is granted permission to copy, modify and redistribute
  211. # Ghostscript, but only under the conditions described in the Ghostscript
  212. # General Public License.  A copy of this license is supposed to have been
  213. # given to you along with Ghostscript so you can know your rights and
  214. # responsibilities.  It should be in a file named COPYING.  Among other
  215. # things, the copyright notice and this notice must be preserved on all
  216. # copies.
  217.  
  218. # Generic makefile for Ghostscript.
  219. # The platform-specific makefiles `include' this file.
  220. # They define the following symbols:
  221. #    GS - the name of the executable (without the extension, if any).
  222. #    GS_LIB_DEFAULT - the default directory/ies for searching for the
  223. #        initialization and font files at run time.
  224. #    DEVICE_DEVS - the devices to include in the executable.
  225. #        See devs.mak for details.
  226. #    DEVICE_DEVS1...DEVICE_DEVS9 - additional devices, if the definition of
  227. #        DEVICE_DEVS doesn't fit on one line.
  228. #        See devs.mak for details.
  229. #    FEATURE_DEVS - the optional features to include in the
  230. #        executable.  Current features are:
  231. #            dps - (partial) support for Display PostScript extensions:
  232. #            see language.doc for details.
  233. #            level2 - (partial) support for PostScript Level 2
  234. #            extensions: see language.doc for details.
  235. #            compfont - support for composite (type 0) fonts.
  236. #            *** NOT IMPLEMENTED YET. ***
  237. #            filter - support for Level 2 filters (other than eexec,
  238. #            ASCIIHexEncode/Decode, NullEncode, PFBDecode,
  239. #            and SubFileDecode, which are always included).
  240. #            ccfonts - precompile fonts into C, and link them
  241. #            with the executable.  In the standard makefiles,
  242. #            this is only implemented for a very few fonts:
  243. #            see fonts.doc for details.
  244. # It is very unlikely that anyone would want to edit the remaining
  245. #   symbols, but we describe them here for completeness:
  246. #    GS_INIT - the name of the initialization file for Ghostscript,
  247. #        normally gs_init.ps.
  248. #    PLATFORM - a "device" name for the platform, so that platforms can
  249. #        add various kinds of resources like devices and features.
  250. #    QQ - a " preceded by whatever escape characters are needed to
  251. #        persuade the shell to pass a " to a program (" on MS-DOS,
  252. #        \" on Unix).
  253. #    XE - the extension for executable files (e.g., null or .exe).
  254. #    OBJ - the extension for relocatable object files (e.g., o or obj).
  255. #    BEGINFILES - the list of files that `make begin' should delete.
  256. #    CCBEGIN - the compilation command for `make begin', normally
  257. #        $(CCC) *.c.
  258. #    CCC - the C invocation for normal compilation.
  259. #    CCD - the C invocation for files that store into frame buffers or
  260. #        device registers.  Needed because some optimizing compilers
  261. #        will eliminate necessary stores.
  262. #    CCCF - the C invocation for compiled fonts and other large,
  263. #        self-contained data modules.  Needed because MS-DOS
  264. #        requires using the 'huge' memory model for these.
  265. #    CCINT - the C invocation for compiling the main interpreter module,
  266. #        normally the same as CCC: this is needed because the
  267. #        Borland compiler generates *worse* code for this module
  268. #        (but only this module) when optimization (-O) is turned on.
  269. #    AK - if source files must be converted from ANSI to K&R syntax,
  270. #        this is ansi2knr$(XE); if not, it is null.
  271. #        If a particular platform requires other utility programs
  272. #        to be built, AK must include them too.
  273. #    SHP - the prefix for invoking a shell script in the current directory
  274. #        (null for MS-DOS, $(SH) ./ for Unix).
  275. #    EXPP, EXP - the prefix for invoking an executable program in the
  276. #        current directory (null for MS-DOS, ./ for Unix).
  277. #    SH - the shell for scripts (null on MS-DOS, sh on Unix).
  278. # The platform-specific makefiles must also include rules for creating
  279. #   ansi2knr$(XE), genarch$(XE), and genconf$(XE) from the corresponding
  280. #   .c files -- this is needed because Turbo C and Unix C treat the -o
  281. #   switch slightly differently (Turbo C requires no following space,
  282. #   Unix C requires a following space), and I haven't found a way to capture
  283. #   the difference in a macro.
  284.  
  285. all default: $(GS)$(XE)
  286.  
  287. distclean realclean: clean
  288.     rm -f makefile
  289.  
  290. clean mostlyclean:
  291.     rm -f *.$(OBJ) *.a core gmon.out
  292.     rm -f *.dev *.d_* arch.h gconfig*.h o*.tr l*.tr
  293.     rm -f t _temp_* _temp_*.* *.map *.sym
  294.     rm -f ansi2knr$(XE) echogs$(XE) genarch$(XE) genconf$(XE)
  295.     rm -f $(GS)$(XE) $(BEGINFILES)
  296.  
  297. # A rule to do a quick and dirty compilation attempt when first installing
  298. # Ghostscript.  Many of the compilations will fail: follow this with 'make'.
  299.  
  300. begin:
  301.     rm -f arch.h genarch$(XE) $(GS)$(XE) $(BEGINFILES)
  302.     make arch.h
  303.     - $(CCBEGIN)
  304.     rm -f gconfig.$(OBJ) gdev*.$(OBJ) gp_*.$(OBJ) gsmisc.$(OBJ)
  305.     rm -f iccfont.$(OBJ) iinit.$(OBJ) interp.$(OBJ) zfiledev.$(OBJ)
  306.  
  307. # Auxiliary programs
  308.  
  309. arch.h: genarch$(XE)
  310.     $(EXPP) $(EXP)genarch arch.h
  311.  
  312. # -------------------------------- Library -------------------------------- #
  313.  
  314. # Define the inter-dependencies of the .h files.
  315. # Since not all versions of `make' defer expansion of macros,
  316. # we must list these in bottom-to-top order.
  317.  
  318. # Generic files
  319.  
  320. arch_h=arch.h
  321. std_h=std.h $(arch_h)
  322.  
  323. # Platform interfaces
  324.  
  325. gp_h=gp.h
  326. gpcheck_h=gpcheck.h
  327.  
  328. # C library interfaces
  329.  
  330. # Because of variations in the "standard" header files between systems, and
  331. # because we must include std.h before any file that includes sys/types.h,
  332. # we define local include files named *_.h to substitute for <*.h>.
  333.  
  334. vmsmath_h=vmsmath.h
  335.  
  336. dos__h=dos_.h
  337. ctype__h=ctype_.h $(std_h)
  338. errno__h=errno_.h
  339. malloc__h=malloc_.h $(std_h)
  340. math__h=math_.h $(std_h) $(vmsmath_h)
  341. memory__h=memory_.h $(std_h)
  342. stat__h=stat_.h $(std_h)
  343. stdio__h=stdio_.h $(std_h)
  344. string__h=string_.h $(std_h)
  345. time__h=time_.h $(std_h)
  346. windows__h=windows_.h
  347.  
  348. # Miscellaneous
  349.  
  350. gdebug_h=gdebug.h
  351. gsio_h=gsio.h
  352. gstypes_h=gstypes.h
  353. gs_h=gs.h $(stdio__h) $(gsio_h) $(gstypes_h)
  354. gx_h=gx.h $(gs_h) $(gdebug_h)
  355. stprint_h=stprint.h
  356. gconfig_h=gconfig.h gsconfig.h
  357. gserrors_h=gserrors.h
  358.  
  359. GX=$(AK) $(gx_h)
  360. GXERR=$(GX) $(gserrors_h)
  361.  
  362. ###### Low-level facilities and utilities
  363.  
  364. ### Include files
  365.  
  366. gsccode_h=gsccode.h
  367. gschar_h=gschar.h $(gsccode_h)
  368. gscie_h=gscie.h
  369. gscolor_h=gscolor.h
  370. gscolor2_h=gscolor2.h
  371. gscoord_h=gscoord.h
  372. gscrypt1_h=gscrypt1.h
  373. gscspace_h=gscspace.h
  374. gsfont_h=gsfont.h
  375. gsimage_h=gsimage.h
  376. gsmatrix_h=gsmatrix.h
  377. gspaint_h=gspaint.h
  378. gspath_h=gspath.h
  379. gsprops_h=gsprops.h
  380. gsstate_h=gsstate.h $(gscolor_h)
  381. gstype1_h=gstype1.h
  382. gsuid_h=gsuid.h
  383. gsutil_h=gsutil.h
  384. gsxfont_h=gsxfont.h
  385.  
  386. gxarith_h=gxarith.h
  387. gxbitmap_h=gxbitmap.h
  388. gxcache_h=gxcache.h $(gsuid_h) $(gsxfont_h)
  389. gxcdir_h=gxcdir.h
  390. gxchar_h=gxchar.h $(gschar_h)
  391. gxclist_h=gxclist.h
  392. # gxcldev is out of order because it include gxclist.
  393. gxcldev_h=gxcldev.h $(gxclist_h)
  394. gxcpath_h=gxcpath.h
  395. gxdevice_h=gxdevice.h $(gsmatrix_h) $(gsxfont_h) $(gxbitmap_h)
  396. gxdevmem_h=gxdevmem.h
  397. gxfdir_h=gxfdir.h $(gxcdir_h)
  398. gxfixed_h=gxfixed.h
  399. gxfont_h=gxfont.h $(gsfont_h) $(gsuid_h)
  400. gxfrac_h=gxfrac.h
  401. gximage_h=gximage.h $(gscspace_h) $(gsimage_h)
  402. gxlum_h=gxlum.h
  403. gxmatrix_h=gxmatrix.h $(gsmatrix_h)
  404. gxop1_h=gxop1.h
  405. gxpath_h=gxpath.h
  406. gxrefct_h=gxrefct.h
  407. gxtype1_h=gxtype1.h $(gscrypt1_h) $(gstype1_h)
  408. gxxfont_h=gxxfont.h $(gsccode_h) $(gsmatrix_h) $(gsuid_h) $(gsxfont_h)
  409. # gxcolor and gxfmap are out of order because they include other files.
  410. gxcolor_h=gxcolor.h $(gxfrac_h) $(gsuid_h)
  411. gxfmap_h=gxfmap.h $(gxfrac_h) $(gxrefct_h)
  412.  
  413. gzcolor_h=gzcolor.h $(gscolor_h) $(gxfmap_h) $(gxlum_h)
  414. gzdevice_h=gzdevice.h $(gxdevice_h)
  415. gzht_h=gzht.h
  416. gzline_h=gzline.h
  417. gzpath_h=gzpath.h $(gxpath_h)
  418. gzstate_h=gzstate.h $(gsstate_h) $(gxfixed_h) $(gxmatrix_h)
  419.  
  420. ### Executable code
  421.  
  422. gp_nofb.$(OBJ): gp_nofb.c $(AK) \
  423.   $(gx_h) $(gp_h) $(gxdevice_h)
  424.  
  425. gsutil.$(OBJ): gsutil.c $(AK) \
  426.   $(std_h) $(gsprops_h) $(gsutil_h)
  427.  
  428. gxccache.$(OBJ): gxccache.c $(GXERR) $(gpcheck_h) \
  429.   $(gxfixed_h) $(gxmatrix_h) $(gzdevice_h) $(gzcolor_h) \
  430.   $(gxcpath_h) $(gxdevmem_h) $(gxfont_h) $(gxfdir_h) $(gxchar_h) \
  431.   $(gxcache_h) $(gxxfont_h) $(gzstate_h) $(gzpath_h) \
  432.   $(gscspace_h) $(gsimage_h)
  433.  
  434. gxccman.$(OBJ): gxccman.c $(GXERR) $(gpcheck_h) \
  435.   $(gxfixed_h) $(gxmatrix_h) $(gzdevice_h) $(gzcolor_h) \
  436.   $(gxcpath_h) $(gxdevmem_h) $(gxfont_h) $(gxfdir_h) $(gxchar_h) \
  437.   $(gxcache_h) $(gxxfont_h) $(gzstate_h) $(gzpath_h)
  438.  
  439. gxclist.$(OBJ): gxclist.c $(GXERR) $(gpcheck_h) \
  440.   $(gsmatrix_h) $(gxbitmap_h) $(gxcldev_h) $(gxdevice_h) $(gxdevmem_h)
  441.  
  442. gxclread.$(OBJ): gxclread.c $(GXERR) $(gpcheck_h) \
  443.   $(gsmatrix_h) $(gxbitmap_h) $(gxcldev_h) $(gxdevice_h) $(gxdevmem_h)
  444.  
  445. gxcmap.$(OBJ): gxcmap.c $(GXERR) \
  446.   $(gscspace_h) \
  447.   $(gxcolor_h) $(gxdevice_h) $(gxfrac_h) $(gxlum_h) \
  448.   $(gzcolor_h) $(gzstate_h)
  449.  
  450. gxcpath.$(OBJ): gxcpath.c $(GXERR) \
  451.   $(gxdevice_h) $(gxfixed_h) $(gzcolor_h) $(gzpath_h) $(gxcpath_h)
  452.  
  453. gxdither.$(OBJ): gxdither.c $(GX) \
  454.   $(gxfixed_h) $(gxlum_h) $(gxmatrix_h) $(gzstate_h) $(gzdevice_h) $(gzcolor_h) $(gzht_h)
  455.  
  456. gxdraw.$(OBJ): gxdraw.c $(GXERR) $(gpcheck_h) \
  457.   $(gxfixed_h) $(gxmatrix_h) $(gxbitmap_h) $(gzcolor_h) $(gzdevice_h) $(gzstate_h)
  458.  
  459. gxfill.$(OBJ): gxfill.c $(GXERR) \
  460.   $(gxfixed_h) $(gxmatrix_h) $(gxdevice_h) $(gzcolor_h) $(gzpath_h) $(gzstate_h) $(gxcpath_h)
  461.  
  462. gxhint1.$(OBJ): gxhint1.c $(GXERR) \
  463.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxdevmem_h) $(gxchar_h) $(gxfont_h) $(gxtype1_h) \
  464.   $(gzdevice_h) $(gzstate_h)
  465.  
  466. gxhint2.$(OBJ): gxhint2.c $(GXERR) \
  467.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxdevmem_h) $(gxchar_h) $(gxfont_h) $(gxtype1_h) $(gxop1_h) \
  468.   $(gzdevice_h) $(gzstate_h)
  469.  
  470. gxht.$(OBJ): gxht.c $(GXERR) \
  471.   $(gxfixed_h) $(gxmatrix_h) $(gxbitmap_h) $(gzstate_h) $(gzcolor_h) $(gzdevice_h) $(gzht_h)
  472.  
  473. gxpath.$(OBJ): gxpath.c $(GXERR) \
  474.   $(gxfixed_h) $(gzpath_h)
  475.  
  476. gxpath2.$(OBJ): gxpath2.c $(GXERR) \
  477.   $(gxfixed_h) $(gxarith_h) $(gzpath_h)
  478.  
  479. gxpcopy.$(OBJ): gxpcopy.c $(GXERR) \
  480.   $(gxfixed_h) $(gxarith_h) $(gzpath_h)
  481.  
  482. gxstroke.$(OBJ): gxstroke.c $(GXERR) $(gpcheck_h) \
  483.   $(gscoord_h) $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) \
  484.   $(gzstate_h) $(gzcolor_h) $(gzdevice_h) $(gzline_h) $(gzpath_h)
  485.  
  486. ###### High-level facilities
  487.  
  488. gschar.$(OBJ): gschar.c $(GXERR) \
  489.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gzdevice_h) $(gxdevmem_h) $(gxfont_h) $(gxchar_h) $(gxcache_h) $(gstype1_h) $(gspath_h) $(gzpath_h) $(gzcolor_h) $(gzstate_h)
  490.  
  491. gscolor.$(OBJ): gscolor.c $(GXERR) \
  492.   $(gscspace_h) $(gxcolor_h) $(gxdevice_h) $(gxrefct_h) \
  493.   $(gzstate_h) $(gzcolor_h)
  494.  
  495. gscoord.$(OBJ): gscoord.c $(GXERR) \
  496.   $(gsccode_h) $(gxarith_h) $(gxfixed_h) $(gxfont_h) $(gxmatrix_h) \
  497.   $(gzdevice_h) $(gzstate_h) $(gscoord_h)
  498.  
  499. gsdevice.$(OBJ): gsdevice.c $(GXERR) \
  500.   $(gxarith_h) $(gsprops_h) $(gsutil_h) $(gxbitmap_h) $(gxdevmem_h) \
  501.   $(gzstate_h) $(gzdevice_h)
  502.  
  503. gsfile.$(OBJ): gsfile.c $(GXERR) \
  504.   $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h)
  505.  
  506. gsfont.$(OBJ): gsfont.c $(GXERR) \
  507.   $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) $(gxfont_h) $(gxfdir_h) \
  508.   $(gzstate_h)
  509.  
  510. gsht.$(OBJ): gsht.c $(GXERR) \
  511.   $(gzht_h) $(gzstate_h)
  512.  
  513. gsimage.$(OBJ): gsimage.c $(GXERR) $(gpcheck_h) \
  514.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gspaint_h) \
  515.   $(gzcolor_h) $(gzdevice_h) $(gzpath_h) $(gzstate_h) \
  516.   $(gxcolor_h) $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  517.  
  518. gsimage1.$(OBJ): gsimage1.c $(GXERR) $(gpcheck_h) \
  519.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gscspace_h) $(gspaint_h) \
  520.   $(gzcolor_h) $(gzdevice_h) $(gzpath_h) $(gzstate_h) \
  521.   $(gxcolor_h) $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  522.  
  523. gsimage2.$(OBJ): gsimage2.c $(GXERR) $(gpcheck_h) \
  524.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gscspace_h) $(gspaint_h) \
  525.   $(gzcolor_h) $(gzdevice_h) $(gzpath_h) $(gzstate_h) \
  526.   $(gxcolor_h) $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  527.  
  528. gsimpath.$(OBJ): gsimpath.c $(GXERR) \
  529.   $(gsmatrix_h) $(gsstate_h) $(gspath_h)
  530.  
  531. gsline.$(OBJ): gsline.c $(GXERR) \
  532.   $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gzline_h)
  533.  
  534. gsmatrix.$(OBJ): gsmatrix.c $(GXERR) \
  535.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h)
  536.  
  537. gsmisc.$(OBJ): gsmisc.c $(GX) $(errno__h) $(malloc__h) $(memory__h) $(MAKEFILE)
  538.     $(CCC) -DUSE_ASM=0$(USE_ASM) gsmisc.c
  539.  
  540. gspaint.$(OBJ): gspaint.c $(GXERR) $(gpcheck_h) \
  541.   $(gxfixed_h) $(gxmatrix_h) $(gspaint_h) $(gzpath_h) $(gzstate_h) $(gzdevice_h) $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  542.  
  543. gspath.$(OBJ): gspath.c $(GXERR) \
  544.   $(gxfixed_h) $(gxmatrix_h) $(gxpath_h) $(gzstate_h)
  545.  
  546. gspath2.$(OBJ): gspath2.c $(GXERR) \
  547.   $(gspath_h) $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gzpath_h) $(gzdevice_h)
  548.  
  549. gsstate.$(OBJ): gsstate.c $(GXERR) \
  550.   $(gscie_h) $(gscolor2_h) $(gscspace_h) $(gxcolor_h) $(gxrefct_h) \
  551.   $(gzstate_h) $(gzcolor_h) $(gzdevice_h) $(gzht_h) $(gzline_h) $(gzpath_h)
  552.  
  553. gstdev.$(OBJ): gstdev.c $(GXERR) \
  554.   $(gxbitmap_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h)
  555.  
  556. gstype1.$(OBJ): gstype1.c $(GXERR) \
  557.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxchar_h) $(gxdevmem_h) $(gxop1_h) $(gxtype1_h) \
  558.   $(gzstate_h) $(gzdevice_h) $(gzpath_h)
  559.  
  560. ###### The internal devices
  561.  
  562. gdevmem_h=gdevmem.h
  563.  
  564. gdevemap.$(OBJ): gdevemap.c $(AK) $(std_h)
  565.  
  566. gdevmem1.$(OBJ): gdevmem1.c $(AK) \
  567.   $(gx_h) $(gserrors_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  568.  
  569. gdevmem2.$(OBJ): gdevmem2.c $(AK) \
  570.   $(gx_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  571.  
  572. gdevmem3.$(OBJ): gdevmem3.c $(AK) \
  573.   $(gx_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  574.  
  575. ###### Files dependent on the installed devices, features, and platform.
  576. # Generating gconfig.h also generates o*.tr and l*.tr.
  577.  
  578. # gconfig.h shouldn't have to depend on ALL_DEVS, but that would
  579. # involve rewriting gsconfig to only save the device name, not the
  580. # contents of the <device>.D_# files.
  581.  
  582. ALL_DEVS=$(FEATURE_DEVS) $(PLATFORM).dev \
  583.   $(DEVICE_DEVS) $(DEVICE_DEVS1) \
  584.   $(DEVICE_DEVS2) $(DEVICE_DEVS3) $(DEVICE_DEVS4) $(DEVICE_DEVS5)\
  585.   $(DEVICE_DEVS6) $(DEVICE_DEVS7) $(DEVICE_DEVS8) $(DEVICE_DEVS9)
  586.  
  587. gconfig.h obj.tr objw.tr ld.tr lib.tr: \
  588.   devs.mak $(MAKEFILE) echogs$(XE) genconf$(XE) $(ALL_DEVS)
  589.     $(EXP)echogs -w t.cfg - $(FEATURE_DEVS) $(PLATFORM).dev
  590.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS)
  591.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS1)
  592.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS2)
  593.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS3)
  594.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS4)
  595.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS5)
  596.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS6)
  597.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS7)
  598.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS8)
  599.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS9)
  600.     $(EXP)genconf @t.cfg -h gconfig.h -l lib.tr -o obj.tr -u ld.tr -w objw.tr
  601.     rm t.cfg
  602.     $(EXP)echogs -a gconfig.h -x 23 define GS_LIB_DEFAULT -x 2022 $(GS_LIB_DEFAULT) -x 22
  603.     $(EXP)echogs -a gconfig.h -x 23 define GS_INIT -x 2022 $(GS_INIT) -x 22
  604.  
  605. gconfig.$(OBJ): gconfig.c $(AK) $(gconfig_h) $(MAKEFILE)
  606.  
  607. ###### On Unix, we pre-link all of the library except the back end.
  608. ###### On MS-DOS, we have to do the whole thing at once.
  609.  
  610. LIBGS=gschar.$(OBJ) gscolor.$(OBJ) gscoord.$(OBJ) \
  611.  gsdevice.$(OBJ) gsfile.$(OBJ) gsfont.$(OBJ) gsht.$(OBJ) \
  612.  gsimage.$(OBJ) gsimage1.$(OBJ) gsimage2.$(OBJ) \
  613.  gsimpath.$(OBJ) gsline.$(OBJ) gsmatrix.$(OBJ) gsmisc.$(OBJ) \
  614.  gspaint.$(OBJ) gspath.$(OBJ) gspath2.$(OBJ) \
  615.  gsstate.$(OBJ) gstdev.$(OBJ) gstype1.$(OBJ) gsutil.$(OBJ) \
  616.  gxccache.$(OBJ) gxccman.$(OBJ) gxclist.$(OBJ) gxclread.$(OBJ) \
  617.  gxcmap.$(OBJ) gxcpath.$(OBJ) \
  618.  gxdither.$(OBJ) gxdraw.$(OBJ) gxfill.$(OBJ) \
  619.  gxhint1.$(OBJ) gxhint2.$(OBJ) gxht.$(OBJ) \
  620.  gxpath.$(OBJ) gxpath2.$(OBJ) gxpcopy.$(OBJ) gxstroke.$(OBJ) \
  621.  gdevmem1.$(OBJ) gdevmem2.$(OBJ) gdevmem3.$(OBJ) gconfig.$(OBJ)
  622.  
  623. # ------------------------------ Interpreter ------------------------------ #
  624.  
  625. ###### Include files
  626.  
  627. alloc_h=alloc.h
  628. astate_h=astate.h
  629. ccfont_h=ccfont.h
  630. dict_h=dict.h
  631. dparam_h=dparam.h
  632. dstack_h=dstack.h
  633. errors_h=errors.h
  634. estack_h=estack.h
  635. filedev_h=filedev.h
  636. files_h=files.h
  637. font_h=font.h
  638. ilevel_h=ilevel.h
  639. iname_h=iname.h
  640. iref_h=iref.h
  641. iscan_h=iscan.h
  642. ivmspace_h=ivmspace.h
  643. iutil_h=iutil.h
  644. main_h=main.h
  645. opdef_h=opdef.h
  646. ostack_h=ostack.h
  647. overlay_h=overlay.h
  648. packed_h=packed.h
  649. save_h=save.h
  650. scanchar_h=scanchar.h
  651. sbits_h=sbits.h
  652. shc_h=shc.h
  653. state_h=state.h
  654. store_h=store.h
  655. stream_h=stream.h
  656. # Nested include files
  657. bfont_h=bfont.h $(font_h)
  658. ghost_h=ghost.h $(gx_h) $(iref_h)
  659. oper_h=oper.h $(gsutil_h) $(iutil_h) $(opdef_h) $(ostack_h)
  660. scf_h=scf.h $(shc_h)
  661. sdct_h=sdct.h $(shc_h)
  662. # Include files for optional features
  663. bnum_h=bnum.h
  664. bseq_h=bseq.h
  665. btoken_h=btoken.h
  666.  
  667. comp1_h=comp1.h $(ghost_h) $(oper_h) $(gserrors_h) $(gxfixed_h) $(gxop1_h)
  668.  
  669. gdevprn_h=gdevprn.h $(memory__h) $(string__h) $(gx_h) $(stprint_h)\
  670.   $(gserrors_h) $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h) $(gxclist_h)
  671.  
  672. ###### Utilities
  673.  
  674. GH=$(AK) $(ghost_h)
  675.  
  676. ialloc.$(OBJ): ialloc.c $(AK) $(gx_h) $(alloc_h) $(astate_h) $(ivmspace_h)
  677.  
  678. iccfont.$(OBJ): iccfont.c $(GH) gconfigf.h \
  679.   $(ghost_h) $(alloc_h) $(ccfont_h) $(dict_h) $(dstack_h) $(errors_h) \
  680.   $(font_h) $(iutil_h) $(iname_h) $(oper_h) $(save_h) $(store_h)
  681.  
  682. idebug.$(OBJ): idebug.c $(GH) \
  683.   $(iutil_h) $(dict_h) $(iname_h) $(ostack_h) $(opdef_h) $(packed_h) $(store_h)
  684.  
  685. idict.$(OBJ): idict.c $(GH) \
  686.   $(alloc_h) $(errors_h) $(ivmspace_h) $(iname_h) $(packed_h) \
  687.   $(save_h) $(store_h) $(iutil_h) $(dict_h) $(dstack_h)
  688.  
  689. idparam.$(OBJ): idparam.c $(GH) \
  690.   $(gsmatrix_h) $(dict_h) $(dparam_h) $(errors_h) $(iutil_h)
  691.  
  692. iinit.$(OBJ): iinit.c $(GH) $(gconfig_h) \
  693.   $(alloc_h) $(dict_h) $(dstack_h) $(errors_h) $(ilevel_h) $(iname_h) $(oper_h) $(store_h)
  694.  
  695. iname.$(OBJ): iname.c $(GH) $(alloc_h) $(errors_h) $(ivmspace_h) $(iname_h) $(store_h)
  696.  
  697. isave.$(OBJ): isave.c $(GH) $(alloc_h) $(astate_h) $(errors_h) $(iname_h) $(packed_h) $(save_h) $(store_h)
  698.  
  699. iscan.$(OBJ): iscan.c $(GH) $(ctype__h) \
  700.   $(alloc_h) $(dict_h) $(dstack_h) $(errors_h) \
  701.   $(ilevel_h) $(iutil_h) $(iscan_h) $(ivmspace_h) \
  702.   $(iname_h) $(ostack_h) $(packed_h) $(store_h) $(stream_h) $(scanchar_h)
  703.  
  704. iutil.$(OBJ): iutil.c $(GH) \
  705.   $(errors_h) $(alloc_h) $(dict_h) $(iutil_h) $(ivmspace_h) \
  706.   $(iname_h) $(ostack_h) $(opdef_h) $(packed_h) $(store_h) \
  707.   $(gsmatrix_h) $(gxdevice_h) $(gzcolor_h)
  708.  
  709. sfilter.$(OBJ): sfilter.c $(AK) $(stdio__h) \
  710.   $(scanchar_h) $(stream_h) $(gscrypt1_h)
  711.  
  712. stream.$(OBJ): stream.c $(AK) $(stdio__h) $(memory__h) \
  713.   $(gpcheck_h) $(scanchar_h) $(stream_h)
  714.  
  715. ###### Operators
  716.  
  717. OP=$(GH) $(errors_h) $(oper_h)
  718.  
  719. ### Non-graphics operators
  720.  
  721. zarith.$(OBJ): zarith.c $(OP) $(store_h)
  722.  
  723. zarray.$(OBJ): zarray.c $(OP) $(alloc_h) $(packed_h) $(store_h)
  724.  
  725. zcontrol.$(OBJ): zcontrol.c $(OP) $(estack_h) $(iutil_h) $(store_h)
  726.  
  727. zdict.$(OBJ): zdict.c $(OP) $(dict_h) $(dstack_h) $(iname_h) $(store_h)
  728.  
  729. zfile.$(OBJ): zfile.c $(OP) $(gp_h) \
  730.   $(alloc_h) $(estack_h) $(filedev_h) $(files_h) $(ilevel_h) $(iutil_h) \
  731.   $(save_h) $(stream_h) $(store_h)
  732.  
  733. zfiledev.$(OBJ): zfiledev.c $(OP) $(string__h) $(gp_h) $(gconfig_h) \
  734.   $(filedev_h) $(files_h) $(stream_h)
  735.  
  736. zfileio.$(OBJ): zfileio.c $(OP) $(gp_h) \
  737.   $(estack_h) $(files_h) $(iscan_h) $(store_h) $(stream_h) \
  738.   $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h)
  739.  
  740. zfilter.$(OBJ): zfilter.c $(OP) $(alloc_h) $(stream_h)
  741.  
  742. zgeneric.$(OBJ): zgeneric.c $(OP) \
  743.   $(dict_h) $(estack_h) $(ivmspace_h) $(iname_h) $(packed_h) $(store_h)
  744.  
  745. zmath.$(OBJ): zmath.c $(OP) $(store_h)
  746.  
  747. zmisc.$(OBJ): zmisc.c $(OP) $(gp_h) $(errno__h) $(memory__h) $(string__h) \
  748.   $(alloc_h) $(dict_h) $(dstack_h) $(iname_h) $(ivmspace_h) $(packed_h) $(store_h) \
  749.   $(gscrypt1_h)
  750.  
  751. zpacked.$(OBJ): zpacked.c $(OP) \
  752.   $(alloc_h) $(dict_h) $(ivmspace_h) $(iname_h) $(packed_h) $(save_h) $(store_h)
  753.  
  754. zprops.$(OBJ): zprops.c $(OP) \
  755.   $(alloc_h) $(dict_h) $(iname_h) $(state_h) $(store_h) \
  756.   $(gsprops_h) $(gsmatrix_h) $(gxdevice_h) $(gsstate_h)
  757.  
  758. zrelbit.$(OBJ): zrelbit.c $(OP) $(store_h) $(dict_h)
  759.  
  760. zstack.$(OBJ): zstack.c $(OP) $(store_h)
  761.  
  762. zstring.$(OBJ): zstring.c $(OP) \
  763.   $(alloc_h) $(iscan_h) $(iutil_h) $(iname_h) $(store_h) $(stream_h)
  764.  
  765. ztype.$(OBJ): ztype.c $(OP) \
  766.   $(dict_h) $(iscan_h) $(iutil_h) $(iname_h) $(stream_h) $(store_h)
  767.  
  768. zvmem.$(OBJ): zvmem.c $(OP) $(alloc_h) $(dict_h) $(dstack_h) $(estack_h) $(save_h) $(state_h) $(store_h) \
  769.   $(gsmatrix_h) $(gsstate_h)
  770.  
  771. ###### Graphics operators
  772.  
  773. zchar.$(OBJ): zchar.c $(OP) $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) \
  774.   $(gschar_h) $(gxtype1_h) $(gxdevice_h) $(gxfont_h) $(gzpath_h) $(gzstate_h) \
  775.   $(alloc_h) $(dict_h) $(font_h) $(estack_h) $(ilevel_h) $(iname_h) $(state_h) $(store_h)
  776.  
  777. zcolor.$(OBJ): zcolor.c $(OP) $(alloc_h) $(estack_h) $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gxdevice_h) $(gzcolor_h) $(iutil_h) $(state_h) $(store_h)
  778.  
  779. zdevice.$(OBJ): zdevice.c $(OP) $(alloc_h) $(state_h) $(gsmatrix_h) $(gsstate_h) $(gxdevice_h) $(store_h)
  780.  
  781. zfont.$(OBJ): zfont.c $(OP) \
  782.   $(gsmatrix_h) $(gxdevice_h) $(gxfont_h) $(gxfdir_h) $(gxcache_h) \
  783.   $(alloc_h) $(bfont_h) $(dict_h) $(iname_h) $(packed_h) $(save_h) $(state_h) $(store_h)
  784.  
  785. zfont1.$(OBJ): zfont1.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gschar_h) $(gxfixed_h) $(gxfont_h) \
  786.   $(bfont_h) $(dict_h) $(dparam_h) $(iname_h) $(store_h)
  787.  
  788. zfont2.$(OBJ): zfont2.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gschar_h) $(gxfixed_h) $(gxfont_h) \
  789.   $(alloc_h) $(bfont_h) $(dict_h) $(dparam_h) $(ilevel_h) $(iname_h) \
  790.   $(packed_h) $(save_h) $(store_h)
  791.  
  792. zgstate.$(OBJ): zgstate.c $(OP) $(alloc_h) $(gsmatrix_h) $(gsstate_h) $(state_h) $(store_h)
  793.  
  794. zht.$(OBJ): zht.c $(OP) $(alloc_h) $(estack_h) $(gsmatrix_h) $(gsstate_h) $(state_h) $(store_h)
  795.  
  796. zmatrix.$(OBJ): zmatrix.c $(OP) $(gsmatrix_h) $(state_h) $(gscoord_h) $(store_h)
  797.  
  798. zpaint.$(OBJ): zpaint.c $(OP) \
  799.   $(alloc_h) $(estack_h) $(ilevel_h) $(state_h) $(store_h) $(stream_h) \
  800.   $(gsimage_h) $(gsmatrix_h) $(gspaint_h)
  801.  
  802. zpath.$(OBJ): zpath.c $(OP) $(gsmatrix_h) $(gspath_h) $(state_h) $(store_h)
  803.  
  804. zpath2.$(OBJ): zpath2.c $(OP) $(alloc_h) $(estack_h) $(gspath_h) $(state_h) $(store_h)
  805.  
  806. ###### Linking
  807.  
  808. INT=ialloc.$(OBJ) idebug.$(OBJ) idict.$(OBJ) idparam.$(OBJ) \
  809.  iinit.$(OBJ) iname.$(OBJ) \
  810.  interp.$(OBJ) isave.$(OBJ) iscan.$(OBJ) iutil.$(OBJ) \
  811.  sfilter.$(OBJ) stream.$(OBJ) \
  812.  zarith.$(OBJ) zarray.$(OBJ) zcontrol.$(OBJ) zdict.$(OBJ) \
  813.  zfile.$(OBJ) zfiledev.$(OBJ) zfileio.$(OBJ) zfilter.$(OBJ) zgeneric.$(OBJ) \
  814.  zmath.$(OBJ) zmisc.$(OBJ) zpacked.$(OBJ) zprops.$(OBJ) zrelbit.$(OBJ) \
  815.  zstack.$(OBJ) zstring.$(OBJ) ztype.$(OBJ) zvmem.$(OBJ) \
  816.  zchar.$(OBJ) zcolor.$(OBJ) zfont.$(OBJ) zfont1.$(OBJ) zfont2.$(OBJ) \
  817.  zdevice.$(OBJ) zgstate.$(OBJ) zht.$(OBJ) zmatrix.$(OBJ) \
  818.  zpaint.$(OBJ) zpath.$(OBJ) zpath2.$(OBJ)
  819.  
  820. # -------------------------- Optional features ---------------------------- #
  821.  
  822. ### Additions common to Display PostScript and Level 2
  823.  
  824. # We have to split up the module list because of limitations
  825. # on the number of arguments to a DOS batch file.
  826. dpsand2a_=gsdps1.$(OBJ) ibnum.$(OBJ) iscan2.$(OBJ)
  827. dpsand2b_=zbseq.$(OBJ) zchar2.$(OBJ) zdps1.$(OBJ) zupath.$(OBJ) zvmem2.$(OBJ)
  828. dpsand2_=$(dpsand2a_) $(dpsand2b_)
  829. dpsand2.dev: $(dpsand2_)
  830.     $(SHP)gssetmod dpsand2 $(dpsand2a_)
  831.     $(SHP)gsaddmod dpsand2 -obj $(dpsand2b_)
  832.     $(SHP)gsaddmod dpsand2 -oper2 zbseq zchar2 zdps1 zupath zvmem2
  833.     $(SHP)gsaddmod dpsand2 -ps gs_dps1
  834.  
  835. gsdps1.$(OBJ): gsdps1.c $(GXERR) $(gxfixed_h) $(gxmatrix_h) $(gzpath_h) $(gzstate_h)
  836.  
  837. ibnum.$(OBJ): ibnum.c $(GH) $(errors_h) $(stream_h) $(bnum_h) $(btoken_h)
  838.  
  839. iscan2.$(OBJ): iscan2.c $(GH) $(errors_h) \
  840.   $(alloc_h) $(dict_h) $(dstack_h) $(iscan_h) $(iutil_h) $(ivmspace_h) \
  841.   $(iname_h) $(ostack_h) $(save_h) $(store_h) $(stream_h) \
  842.   $(bseq_h) $(btoken_h) $(bnum_h)
  843.  
  844. zbseq.$(OBJ): zbseq.c $(OP) $(save_h) $(store_h) $(stream_h) $(files_h) $(iname_h) $(bnum_h) $(btoken_h) $(bseq_h)
  845.  
  846. zchar2.$(OBJ): zchar2.c $(OP) $(gschar_h) $(gsmatrix_h) $(gxfixed_h) $(gxfont_h) \
  847.   $(alloc_h) $(estack_h) $(font_h) $(iname_h) $(state_h) $(store_h) $(stream_h) $(bnum_h)
  848.  
  849. zdps1.$(OBJ): zdps1.c $(OP) $(gsmatrix_h) $(gspath_h) $(gsstate_h) \
  850.   $(alloc_h) $(ivmspace_h) $(state_h) $(store_h) $(stream_h) $(bnum_h)
  851.  
  852. zupath.$(OBJ): zupath.c $(OP) \
  853.   $(dict_h) $(dstack_h) $(iutil_h) $(state_h) $(store_h) $(stream_h) $(bnum_h) \
  854.   $(gscoord_h) $(gsmatrix_h) $(gspaint_h) $(gspath_h) $(gsstate_h) \
  855.   $(gxfixed_h) $(gxdevice_h) $(gxpath_h)
  856.  
  857. zvmem2.$(OBJ): zvmem2.c $(OP) \
  858.   $(ivmspace_h) $(store_h)
  859.  
  860. ### Display PostScript
  861. # We should include zcontext, but it isn't in good enough shape yet:
  862. #    $(SHP)gsaddmod dps -oper2 zcontext
  863.  
  864. dps_=
  865. dps.dev: dpsand2.dev $(dps_)
  866.     $(SHP)gssetmod dps $(dps_)
  867.     $(SHP)gsaddmod dps -include dpsand2
  868.  
  869. zcontext.$(OBJ): zcontext.c $(OP) \
  870.   $(alloc_h) $(dict_h) $(dstack_h) $(estack_h) $(state_h) $(store_h)
  871.  
  872. ### Composite font support
  873.  
  874. gschar0.$(OBJ): gschar0.c $(GXERR) \
  875.   $(gxfixed_h) $(gxmatrix_h) $(gzdevice_h) $(gxdevmem_h) $(gxfont_h) $(gxchar_h) $(gzstate_h)
  876.  
  877. zfont0.$(OBJ): zfont0.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gxfont_h) \
  878.   $(alloc_h) $(bfont_h) $(dict_h) $(iname_h) $(state_h) $(store_h)
  879.  
  880. compfont_=zchar2.$(OBJ) zfont0.$(OBJ) gschar0.$(OBJ)
  881. compfont.dev: $(compfont_)
  882.     $(SHP)gssetmod compfont $(compfont_)
  883.     $(SHP)gsaddmod compfont -oper zfont0 zchar2
  884.     $(SHP)gsaddmod compfont -ps gs_type0
  885.  
  886. ### Level 2 additions
  887.  
  888. # We have to split up the module list because of limitations
  889. # on the number of arguments to a DOS batch file.
  890. level2a_=gscie.$(OBJ) gscolor2.$(OBJ) zcie.$(OBJ) zcolor2.$(OBJ)
  891. level2b_=zcspace2.$(OBJ) zht2.$(OBJ) zimage2.$(OBJ) zmisc2.$(OBJ)
  892. level2_=$(level2a_) $(level2b_)
  893. level2.dev: compfont.dev dpsand2.dev filter.dev $(level2_)
  894.     $(SHP)gssetmod level2 $(level2a_)
  895.     $(SHP)gsaddmod level2 -obj $(level2b_)
  896.     $(SHP)gsaddmod level2 -include compfont dpsand2 filter
  897.     $(SHP)gsaddmod level2 -oper zmisc2_level
  898.     $(SHP)gsaddmod level2 -oper2 zcie zcolor2 zcspace2
  899.     $(SHP)gsaddmod level2 -oper2 zht2 zimage2 zmisc2
  900.     $(SHP)gsaddmod level2 -ps gs_lev2
  901.  
  902. gscie.$(OBJ): gscie.c $(GXERR) \
  903.   $(gscspace_h) $(gscie_h) $(gscolor2_h) \
  904.   $(gxarith_h) $(gxcolor_h) $(gxdevice_h) $(gxrefct_h) \
  905.   $(gzcolor_h) $(gzstate_h)
  906.  
  907. gscolor2.$(OBJ): gscolor2.c $(GXERR) \
  908.   $(gscie_h) $(gscolor2_h) $(gscspace_h) \
  909.   $(gxcolor_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) $(gxrefct_h) \
  910.   $(gzcolor_h) $(gzstate_h)
  911.  
  912. zcie.$(OBJ): zcie.c $(OP) \
  913.   $(gscspace_h) $(gscolor2_h) $(gscie_h) $(gxcolor_h) $(gxrefct_h) \
  914.   $(alloc_h) $(dict_h) $(dparam_h) $(estack_h) $(save_h) $(state_h) $(store_h)
  915.  
  916. zcolor2.$(OBJ): zcolor2.c $(OP) \
  917.   $(gscolor_h) $(gxcolor_h) $(gscolor2_h) $(gscspace_h) $(gsmatrix_h) \
  918.   $(dict_h) $(dparam_h) $(iname_h) $(state_h) $(store_h)
  919.  
  920. zcspace2.$(OBJ): zcspace2.c $(OP) \
  921.   $(gscolor_h) $(gxcolor_h) $(gscolor2_h) $(gscspace_h) $(gsmatrix_h) \
  922.   $(dict_h) $(dparam_h) $(estack_h) $(iname_h) $(state_h) $(store_h)
  923.  
  924. zht2.$(OBJ): zht2.c $(OP) \
  925.   $(dict_h) $(dparam_h) $(iname_h) $(state_h) $(store_h)
  926.  
  927. zimage2.$(OBJ): zimage2.c $(OP) \
  928.   $(gscolor_h) $(gscolor2_h) $(gscspace_h) $(gsmatrix_h) $(gxcolor_h) \
  929.   $(dict_h) $(dparam_h) $(ilevel_h) $(state_h)
  930.  
  931. zmisc2.$(OBJ): zmisc2.c $(OP) \
  932.   $(gsfont_h) \
  933.   $(dict_h) $(dparam_h) $(dstack_h) $(estack_h) $(ilevel_h) $(iname_h) $(store_h)
  934.  
  935. ### Filters other than the ones in sfilter.c
  936.  
  937. sbits.$(OBJ): sbits.c $(AK) $(stdio__h) $(sbits_h) $(stream_h)
  938.  
  939. scftab.$(OBJ): scftab.c $(AK) $(std_h) $(scf_h)
  940.  
  941. scfdtab.$(OBJ): scfdtab.c $(AK) $(std_h) $(scf_h)
  942.  
  943. scfd.$(OBJ): scfd.c $(AK) $(stdio__h) $(gdebug_h)\
  944.   $(sbits_h) $(scf_h) $(stream_h)
  945.  
  946. scfe.$(OBJ): scfe.c $(AK) $(stdio__h) $(gdebug_h)\
  947.   $(sbits_h) $(scf_h) $(stream_h)
  948.  
  949. sdctd.$(OBJ): sdctd.c $(AK) $(stdio__h) $(gdebug_h) $(stream_h)
  950.  
  951. sdcte.$(OBJ): sdcte.c $(AK) $(stdio__h) $(gdebug_h) $(stream_h)
  952.  
  953. sfilter2.$(OBJ): sfilter2.c $(AK) $(stdio__h) $(scanchar_h) $(stream_h)
  954.  
  955. slzwd.$(OBJ): slzwd.c $(AK) $(stdio__h) $(gdebug_h) $(stream_h)
  956.  
  957. slzwe.$(OBJ): slzwe.c $(AK) $(stdio__h) $(gdebug_h) $(stream_h)
  958.  
  959. zfilter2.$(OBJ): zfilter2.c $(OP) $(alloc_h) $(dict_h) $(dparam_h) $(sdct_h) $(stream_h)
  960.  
  961. # Because of size limits on the DOS command line,
  962. # we have to break this up into two parts.
  963. filter_1=zfilter2.$(OBJ) sfilter2.$(OBJ) sbits.$(OBJ)
  964. filter_2=scfdtab.$(OBJ) scftab.$(OBJ) scfd.$(OBJ) scfe.$(OBJ) 
  965. filter_3=sdctd.$(OBJ) sdcte.$(OBJ) slzwd.$(OBJ) slzwe.$(OBJ)
  966. filter.dev: $(filter_1) $(filter_2) $(filter_3)
  967.     $(SHP)gssetmod filter $(filter_1)
  968.     $(SHP)gsaddmod filter -obj $(filter_2)
  969.     $(SHP)gsaddmod filter -obj $(filter_3)
  970.     $(SHP)gsaddmod filter -oper zfilter2
  971.  
  972. ### Precompiled fonts.  See fonts.doc for more information.
  973.  
  974. CCFONT=$(OP) $(ccfont_h)
  975.  
  976. # List the fonts we are going to compile.
  977. # Because of intrinsic limitations in `make', we have to list
  978. # the object file names and the font names separately.
  979. ccfonts1_=uglyr.$(OBJ)
  980. ccfonts1=uglyr
  981.  
  982. ccfonts.dev: $(MAKEFILE) gs.mak iccfont.$(OBJ) \
  983.   $(ccfonts1_) $(ccfonts2_) $(ccfonts3_) $(ccfonts4_) $(ccfonts5_)
  984.     $(SHP)gssetmod ccfonts iccfont.$(OBJ)
  985.     $(SHP)gsaddmod ccfonts -obj $(ccfonts1_)
  986.     $(SHP)gsaddmod ccfonts -obj $(ccfonts2_)
  987.     $(SHP)gsaddmod ccfonts -obj $(ccfonts3_)
  988.     $(SHP)gsaddmod ccfonts -obj $(ccfonts4_)
  989.     $(SHP)gsaddmod ccfonts -obj $(ccfonts5_)
  990.     $(SHP)gsaddmod ccfonts -oper ccfonts
  991.  
  992. gconfigf.h: $(MAKEFILE) gs.mak genconf$(XE)
  993.     $(SHP)gssetmod ccfonts_
  994.     $(SHP)gsaddmod ccfonts_ -font $(ccfonts1)
  995.     $(SHP)gsaddmod ccfonts_ -font $(ccfonts2)
  996.     $(SHP)gsaddmod ccfonts_ -font $(ccfonts3)
  997.     $(SHP)gsaddmod ccfonts_ -font $(ccfonts4)
  998.     $(SHP)gsaddmod ccfonts_ -font $(ccfonts5)
  999.     $(EXP)genconf ccfonts_.dev -f gconfigf.h
  1000.  
  1001. uglyr.$(OBJ): uglyr.c $(CCFONT)
  1002.     $(CCCF) uglyr.c
  1003.  
  1004. ncrr.$(OBJ): ncrr.c $(CCFONT)
  1005.     $(CCCF) ncrr.c
  1006.  
  1007. pagk.$(OBJ): pagk.c $(CCFONT)
  1008.     $(CCCF) pagk.c
  1009.  
  1010. psyr.$(OBJ): psyr.c $(CCFONT)
  1011.     $(CCCF) psyr.c
  1012.  
  1013. ptmr.$(OBJ): ptmr.c $(CCFONT)
  1014.     $(CCCF) ptmr.c
  1015.  
  1016. pzdr.$(OBJ): pzdr.c $(CCFONT)
  1017.     $(CCCF) pzdr.c
  1018.  
  1019. # ----------------------------- Main program ------------------------------ #
  1020.  
  1021. # Interpreter main program
  1022.  
  1023. gs.$(OBJ): gs.c $(GH) $(ctype__h) \
  1024.   $(gxdevice_h) $(gxdevmem_h) \
  1025.   $(alloc_h) $(errors_h) $(estack_h) $(files_h) $(iscan_h) $(main_h) $(ostack_h) $(store_h) $(stream_h)
  1026.  
  1027. gsmain.$(OBJ): gsmain.c $(GH) \
  1028.   $(gp_h) $(gsmatrix_h) $(gxdevice_h) $(gserrors_h) \
  1029.   $(estack_h) $(files_h) $(iscan_h) $(main_h) $(ostack_h) $(store_h)
  1030.  
  1031. interp.$(OBJ): interp.c $(GH) \
  1032.   $(errors_h) $(estack_h) $(iname_h) $(dict_h) $(dstack_h) $(iscan_h) $(oper_h) $(ostack_h) $(packed_h) $(save_h) $(store_h) $(stream_h)
  1033.     $(CCINT) interp.c
  1034. #    Copyright (C) 1989, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  1035. #
  1036. # This file is part of Ghostscript.
  1037. #
  1038. # Ghostscript is distributed in the hope that it will be useful, but
  1039. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  1040. # to anyone for the consequences of using it or for whether it serves any
  1041. # particular purpose or works at all, unless he says so in writing.  Refer
  1042. # to the Ghostscript General Public License for full details.
  1043. #
  1044. # Everyone is granted permission to copy, modify and redistribute
  1045. # Ghostscript, but only under the conditions described in the Ghostscript
  1046. # General Public License.  A copy of this license is supposed to have been
  1047. # given to you along with Ghostscript so you can know your rights and
  1048. # responsibilities.  It should be in a file named COPYING.  Among other
  1049. # things, the copyright notice and this notice must be preserved on all
  1050. # copies.
  1051.  
  1052. # makefile for Ghostscript device drivers.
  1053.  
  1054. # -------------------------------- Catalog ------------------------------- #
  1055.  
  1056. # It is possible to build Ghostscript with an arbitrary collection of
  1057. # device drivers, although some drivers are supported only on a subset
  1058. # of the target platforms.  The currently available drivers are:
  1059.  
  1060. # Displays:
  1061. #   MS-DOS EGA and VGA:
  1062. #    ega    EGA (640x350, 16-color)
  1063. #    vga    VGA (640x480, 16-color)
  1064. #   MS-DOS SuperVGA:
  1065. # +    atiw    ATI Wonder SuperVGA, 256-color modes
  1066. # +     atiw16  ATI Wonder SuperVGA in 800x600, 16-color mode
  1067. #    s3vga    SuperVGA with S3 86C911 chip (e.g., Diamond Stealth board)
  1068. #    tseng    SuperVGA using Tseng Labs ET3000/4000 chips, 256-color modes
  1069. #    tseng16  Tseng Labs SuperVGA in 800x600, 16-color mode (256K memory)
  1070. # +    tvga    Trident SuperVGA, 256-color modes
  1071. # +    tvga16    Trident SuperVGA in 800x600, 16-color mode (256K memory)
  1072. #   ****** NOTE: The vesa device does not work with the Watcom (32-bit MS-DOS)
  1073. #   ****** compiler or executable.
  1074. #    vesa    SuperVGA with VESA standard API driver
  1075. #   MS-DOS other:
  1076. #    bgi    Borland Graphics Interface (CGA)  [MS-DOS only]
  1077. # *    herc    Hercules Graphics display   [MS-DOS only]
  1078. #    mswin    Microsoft Windows 3.0, 3.1  [MS Windows only]
  1079. #    mswinprn  Microsoft Windows 3.0, 3.1 printer  [MS Windows only]
  1080. # *    pe    Private Eye display
  1081. #   Unix and VMS:
  1082. #   ****** NOTE: For direct frame buffer addressing under SCO Unix or Xenix,
  1083. #   ****** edit the definition of EGAVGA below.
  1084. # *    att3b1    AT&T 3b1/Unixpc monochrome display   [3b1 only]
  1085. # *    sonyfb    Sony Microsystems monochrome display   [Sony only]
  1086. # *    sunview  SunView window system   [SunOS only]
  1087. #    x11    X Windows version 11, release >=3   [Unix and VMS only]
  1088. # Printers:
  1089. # *    appledmp  Apple Dot Matrix Printer (should also work with Imagewriter)
  1090. #    bj10e    Canon BubbleJet BJ10e
  1091. # *    bj200    Canon BubbleJet BJ200
  1092. # *    cdeskjet  H-P DeskJet 500C with 1 bit/pixel color
  1093. # *    cdjcolor  H-P DeskJet 500C with 24 bit/pixel color and
  1094. #        high-quality color (Floyd-Steinberg) dithering
  1095. # *    cdjmono  H-P DeskJet 500C printing black only
  1096. # *    cdj500    H-P DeskJet 500C (same as cdjcolor)
  1097. # *    cdj550    H-P DeskJet 550C
  1098. # *    declj250  alternate DEC LJ250 driver
  1099. # +    deskjet  H-P DeskJet and DeskJet Plus
  1100. # *    dfaxhigh  DigiBoard, Inc.'s DigiFAX software format (high resolution)
  1101. # *    dfaxlow  DigiFAX low (normal) resolution
  1102. #    djet500  H-P DeskJet 500
  1103. # *    djet500c  H-P DeskJet 500C
  1104. #    epson    Epson-compatible dot matrix printers (9- or 24-pin)
  1105. # +    eps9high  Epson-compatible 9-pin, interleaved lines
  1106. #        (triple resolution)
  1107. # *    epsonc    Epson LQ-2550 and Fujitsu 3400/2400/1200 color printers
  1108. # *    escp2    Epson ESC/P 2 language printers, including Stylus 800
  1109. # +     ibmpro  IBM 9-pin Proprinter
  1110. # *    jetp3852  IBM Jetprinter ink-jet color printer (Model #3852)
  1111. # +    laserjet  H-P LaserJet
  1112. # *    la50    DEC LA50 printer
  1113. # *    la75    DEC LA75 printer
  1114. # *    lbp8    Canon LBP-8II laser printer
  1115. # *    ln03    DEC LN03 printer
  1116. # *    lj250    DEC LJ250 Companion color printer
  1117. # +    ljet2p    H-P LaserJet IId/IIp/III* with TIFF compression
  1118. # +    ljet3    H-P LaserJet III* with Delta Row compression
  1119. # +    ljetplus  H-P LaserJet Plus
  1120. # *    m8510    C.Itoh M8510 printer
  1121. # *    necp6    NEC P6/P6+/P60 printers at 360 x 360 DPI resolution
  1122. # *    nwp533  Sony Microsystems NWP533 laser printer   [Sony only]
  1123. # *    oki182    Okidata MicroLine 182
  1124. #    paintjet  H-P PaintJet color printer
  1125. # *    pj    alternate PaintJet XL driver 
  1126. # *    pjxl    H-P PaintJet XL color printer
  1127. # *    pjxl300  H-P PaintJet XL300 color printer
  1128. # *    r4081    Ricoh 4081 laser printer
  1129. # *    sparc    SPARCprinter
  1130. # *    t4693d2  Tektronix 4693d color printer, 2 bits per R/G/B component
  1131. # *    t4693d4  Tektronix 4693d color printer, 4 bits per R/G/B component
  1132. # *    t4693d8  Tektronix 4693d color printer, 8 bits per R/G/B component
  1133. # *    tek4696  Tektronix 4695/4696 inkjet plotter
  1134. # *    trufax    TruFax facsimile driver  [Unix only]
  1135. # File formats and others:
  1136. #    bit    A plain "bit bucket" device
  1137. #    bmpmono    Monochrome MS Windows .BMP file format
  1138. #    bmp16    4-bit (EGA/VGA) .BMP file format
  1139. #    bmp256    8-bit (256-color) .BMP file format
  1140. #    bmp16m    24-bit .BMP file format
  1141. #    gifmono    Monochrome GIF file format
  1142. #    gif8    8-bit color GIF file format
  1143. #    pcxmono    Monochrome PCX file format
  1144. #    pcx16    Older color PCX file format (EGA/VGA, 16-color)
  1145. #    pcx256    Newer color PCX file format (256-color)
  1146. #    pbm    Portable Bitmap (plain format)
  1147. #    pbmraw    Portable Bitmap (raw format)
  1148. #    pgm    Portable Graymap (plain format)
  1149. #    pgmraw    Portable Graymap (raw format)
  1150. #    ppm    Portable Pixmap (plain format)
  1151. #    ppmraw    Portable Pixmap (raw format)
  1152. # *    tiffg3    TIFF/F (G3 fax)
  1153.  
  1154. # User-contributed drivers marked with * require hardware or software
  1155. # that is not available to Aladdin Enterprises.  Please contact the
  1156. # original contributors, not Aladdin Enterprises, if you have questions.
  1157. # Contact information appears in the driver entry below.
  1158. #
  1159. # Drivers marked with a + are maintained by Aladdin Enterprises with
  1160. # the assistance of users, since Aladdin Enterprises doesn't have access to
  1161. # the hardware for these either.
  1162.  
  1163. # If you add drivers, it would be nice if you kept each list
  1164. # in alphabetical order.
  1165.  
  1166. # Each platform-specific makefile contains a line of the form
  1167. #    DEVICE_DEVS=<dev1>.dev ... <devn>.dev
  1168. # where dev1 ... devn are the devices to be included in the build.
  1169. # You may edit this line to select any desired set of devices.
  1170. # dev1 will be used as the default device (unless overridden from
  1171. # the command line with -sDEVICE=xxx, of course.)  If you can't fit all the
  1172. # devices on a single line, you may add lines defining
  1173. #    DEVICE_DEVS2=<dev21>.dev ... <dev2n>.dev
  1174. #    DEVICE_DEVS3=<dev31>.dev ... <dev3n>.dev
  1175. # etc. up to DEVICE_DEVS9.
  1176. # Don't use continuation lines, since this may break the MS-DOS command
  1177. # processor.
  1178.  
  1179. # ---------------------------- End of catalog ---------------------------- #
  1180.  
  1181. # If you want to add a new device driver, the examples below should be
  1182. # enough of a guide to the correct form for the makefile rules.
  1183.  
  1184. # All device drivers depend on the following:
  1185. GDEV=$(AK) echogs$(XE) $(gserrors_h) $(gx_h) $(gxdevice_h)
  1186.  
  1187. # Define the header files for device drivers.  Every header file used by
  1188. # more than one device driver must be listed here.
  1189. gdevpccm_h=gdevpccm.h
  1190. gdevpcfb_h=gdevpcfb.h $(dos__h)
  1191. gdevpcl_h=gdevpcl.h
  1192. gdevsvga_h=gdevsvga.h
  1193. gdevx_h=gdevx.h
  1194.  
  1195. ###### ------------------- MS-DOS display devices ------------------- ######
  1196.  
  1197. # There are really only three drivers: an EGA/VGA driver (4 bit-planes,
  1198. # plane-addressed), a SuperVGA driver (8 bit-planes, byte addressed),
  1199. # and a special driver for the S3 chip.
  1200. # To make A4 paper the default, change the compilation line from
  1201. #    $(CCD) ...
  1202. # to
  1203. #    $(CCD) -DA4
  1204.  
  1205. ### ----------------------- EGA and VGA displays ----------------------- ###
  1206.  
  1207. gdevegaa.$(OBJ): gdevegaa.asm
  1208.  
  1209. ETEST=ega.$(OBJ) $(ega_) gdevpcfb.$(OBJ) gdevegaa.$(OBJ)
  1210. ega.exe: $(ETEST) libc$(MM).tr
  1211.     $(COMPDIR)\tlink $(LCT) $(LO) $(LIBDIR)\c0$(MM) @ega.tr @libc$(MM).tr
  1212.  
  1213. ega.$(OBJ): ega.c $(GDEV)
  1214.     $(CCC) -v ega.c
  1215.  
  1216. # The shared MS-DOS makefile defines PCFBASM as either gdevegaa.$(OBJ)
  1217. # or an empty string.
  1218.  
  1219. # NOTE: for direct frame buffer addressing under SCO Unix or Xenix,
  1220. # change gdevevga to gdevsco in the following line.
  1221. EGAVGA=gdevevga.$(OBJ) gdevpcfb.$(OBJ) $(PCFBASM)
  1222.  
  1223. gdevevga.$(OBJ): gdevevga.c $(GDEV) $(gdevpcfb_h)
  1224.     $(CCD) gdevevga.c
  1225.  
  1226. gdevsco.$(OBJ): gdevsco.c $(GDEV) $(gdevpcfb_h)
  1227.     $(CCD) gdevsco.c
  1228.  
  1229. # Common code for MS-DOS and SCO.
  1230. gdevpcfb.$(OBJ): gdevpcfb.c $(GDEV) $(MAKEFILE) $(gdevpcfb_h)
  1231.     $(CCD) -DUSE_ASM=0$(USE_ASM) gdevpcfb.c
  1232.  
  1233. # The EGA/VGA family includes: EGA, VGA, and
  1234. # the ATI Wonder, Tseng ET3000/4000, and Trident SuperVGA in 16-color mode.
  1235.  
  1236. ega.dev: $(EGAVGA)
  1237.     $(SHP)gssetdev ega $(EGAVGA)
  1238.  
  1239. vga.dev: $(EGAVGA)
  1240.     $(SHP)gssetdev vga $(EGAVGA)
  1241.  
  1242. atiw16.dev: $(EGAVGA)
  1243.     $(SHP)gssetdev atiw16 $(EGAVGA)
  1244.  
  1245. tseng16.dev: $(EGAVGA)
  1246.     $(SHP)gssetdev tseng16 $(EGAVGA)
  1247.  
  1248. tvga16.dev: $(EGAVGA)
  1249.     $(SHP)gssetdev tvga16 $(EGAVGA)
  1250.  
  1251. ### ------------------------- SuperVGA displays ------------------------ ###
  1252.  
  1253. SVGA=gdevsvga.$(OBJ) $(PCFBASM)
  1254.  
  1255. gdevsvga.$(OBJ): gdevsvga.c $(GDEV) $(MAKEFILE) \
  1256.   $(gdevpcfb_h) $(gdevsvga_h)
  1257.     $(CCD) -DUSE_ASM=0$(USE_ASM) gdevsvga.c
  1258.  
  1259. # The SuperVGA family includes: ATI Wonder, S3, Trident, Tseng ET3000/4000,
  1260. # and VESA.
  1261.  
  1262. atiw.dev: $(SVGA)
  1263.     $(SHP)gssetdev atiw $(SVGA)
  1264.  
  1265. tseng.dev: $(SVGA)
  1266.     $(SHP)gssetdev tseng $(SVGA)
  1267.  
  1268. tvga.dev: $(SVGA)
  1269.     $(SHP)gssetdev tvga $(SVGA)
  1270.  
  1271. vesa.dev: $(SVGA)
  1272.     $(SHP)gssetdev vesa $(SVGA)
  1273.  
  1274. # The S3 driver doesn't share much code with the others.
  1275.  
  1276. s3vga_=$(SVGA) gdevs3ga.$(OBJ)
  1277. s3vga.dev: $(s3vga_)
  1278.     $(SHP)gssetdev s3vga $(s3vga_)
  1279.  
  1280. gdevs3ga.$(OBJ): gdevs3ga.c $(GDEV) $(MAKEFILE) $(gdevpcfb_h) $(gdevsvga_h)
  1281.     $(CCD) gdevs3ga.c
  1282.  
  1283. ### ------------ The BGI (Borland Graphics Interface) device ----------- ###
  1284.  
  1285. cgaf.$(OBJ): $(BGIDIR)\cga.bgi
  1286.     $(BGIDIR)\bgiobj /F $(BGIDIR)\cga
  1287.  
  1288. egavgaf.$(OBJ): $(BGIDIR)\egavga.bgi
  1289.     $(BGIDIR)\bgiobj /F $(BGIDIR)\egavga
  1290.  
  1291. # Include egavgaf.$(OBJ) for debugging only.
  1292. bgi_=gdevbgi.$(OBJ) cgaf.$(OBJ)
  1293. bgi.dev: $(bgi_)
  1294.     $(SHP)gssetdev bgi $(bgi_)
  1295.     $(SHP)gsaddmod bgi -lib $(LIBDIR)\graphics
  1296.  
  1297. gdevbgi.$(OBJ): gdevbgi.c $(GDEV) $(MAKEFILE) $(gxxfont_h)
  1298.     $(CCC) -DBGI_LIB=$(QQ)$(BGIDIRSTR)$(QQ) gdevbgi.c
  1299.  
  1300. ### ------------------- The Hercules Graphics display ------------------- ###
  1301.  
  1302. herc_=gdevherc.$(OBJ)
  1303. herc.dev: $(herc_)
  1304.     $(SHP)gssetdev herc $(herc_)
  1305.  
  1306. gdevherc.$(OBJ): gdevherc.c $(GDEV)
  1307.     $(CCC) gdevherc.c
  1308.  
  1309. ###### ------------------- The Private Eye display ------------------- ######
  1310. ### Note: this driver was contributed by a user:                          ###
  1311. ###   please contact narf@media-lab.media.mit.edu if you have questions.  ###
  1312.  
  1313. pe_=gdevpe.$(OBJ)
  1314. pe.dev: $(pe_)
  1315.     $(SHP)gssetdev pe $(pe_)
  1316.  
  1317. gdevpe.$(OBJ): gdevpe.c $(GDEV)
  1318.  
  1319. ###### ----------------- The MS-Windows 3.n display ------------------ ######
  1320.  
  1321. gdevmswn_h=gdevmswn.h $(GDEV) gp_mswin.h
  1322.  
  1323. # Choose one of gdevwddb or gdevwdib here.
  1324. mswin_=gdevmswn.$(OBJ) gdevmsxf.$(OBJ) gdevwdib.$(OBJ) \
  1325.   gdevemap.$(OBJ) gdevpccm.$(OBJ)
  1326. mswin.dev: $(mswin_)
  1327.     $(SHP)gssetdev mswin $(mswin_)
  1328.  
  1329. gdevmswn.$(OBJ): gdevmswn.c $(gdevmswn_h) $(gp_h) $(gpcheck_h) \
  1330.   $(gsprops_h) $(gdevpccm_h)
  1331.  
  1332. gdevmsxf.$(OBJ): gdevmsxf.c $(ctype__h) $(math__h) $(memory__h) \
  1333.   $(gdevmswn_h) $(gsutil_h) $(gxxfont_h)
  1334.  
  1335. # An implementation using a device-dependent bitmap.
  1336. gdevwddb.$(OBJ): gdevwddb.c $(gdevmswn_h)
  1337.  
  1338. # An implementation using a DIB filled by an image device.
  1339. gdevwdib.$(OBJ): gdevwdib.c $(dos__h) $(gdevmswn_h)
  1340.  
  1341. ###### ----------------- The MS-Windows 3.n printer ------------------ ######
  1342.  
  1343. mswinprn_=gdevwprn.$(OBJ) gdevmsxf.$(OBJ)
  1344. mswinprn.dev: $(mswinprn_)
  1345.     $(SHP)gssetdev mswinprn $(mswinprn_)
  1346.  
  1347. gdevwprn.$(OBJ): gdevwprn.c $(gdevmswn_h) $(gp_h) $(gpcheck_h) \
  1348.   $(gsprops_h) $(gdevpccm_h)
  1349.  
  1350. ###### ----------- The AT&T 3b1 Unixpc monochrome display ------------ ######
  1351. ### Note: this driver was contributed by a user: please contact           ###
  1352. ###       Andy Fyfe (andy@cs.caltech.edu) if you have questions.          ###
  1353.  
  1354. att3b1_=gdev3b1.$(OBJ)
  1355. att3b1.dev: $(att3b1_)
  1356.     $(SHP)gssetdev att3b1 $(att3b1_)
  1357.  
  1358. gdev3b1.$(OBJ): gdev3b1.c
  1359.  
  1360. ###### --------------- Memory-buffered printer devices --------------- ######
  1361.  
  1362. # The dependency list for printers includes devs.mak because
  1363. # you can specify -DA4 to make A4 paper the default.
  1364. # See below under, e.g., gdevdjet.c.
  1365.  
  1366. PDEVH=$(GDEV) $(gdevprn_h) devs.mak
  1367.  
  1368. gdevprn.$(OBJ): gdevprn.c $(PDEVH) $(gp_h) $(gsprops_h)
  1369.  
  1370. ### --------------- The Atari ST mono vdi screen device ---------------- ###
  1371. ### Note that you can set the default density in the command line below. ###
  1372.  
  1373. stvdi_=gdevvdi.$(OBJ) gdevprn.$(OBJ)
  1374. stvdi.dev: $(stvdi_)
  1375.     $(SHP)gssetdev stvdi $(stvdi_)
  1376.  
  1377. gdevvdi.$(OBJ): gdevvdi.c gdevvdi.h $(PDEVH) devs.mak
  1378. #    $(CCC) -DX_DPI=100 -DY_DPI=100 gdevvdi.c
  1379.  
  1380. ### -------------- The Atari SLM 804 laser printer device -------------- ###
  1381. ###              Note: this driver was contributed by users:             ###
  1382. ###       please contact stabl@fmi.uni-passau.de if you have questions.  ###
  1383.  
  1384. slm_=gdevslm.$(OBJ) gdevprn.$(OBJ)
  1385. slm.dev: $(slm_)
  1386.     $(SHP)gssetdev slm $(slm_)
  1387.  
  1388. gdevslm.$(OBJ): gdevslm.c $(PDEVH) devs.mak
  1389. #    $(CCC) -DX_DPI=100 -DY_DPI=100 gdevslm.c
  1390.  
  1391. ### ------------------- The Apple DMP printer device ------------------- ###
  1392.  
  1393. appledmp_=gdevadmp.$(OBJ) gdevprn.$(OBJ)
  1394.  
  1395. appledmp.dev: $(appledmp_)
  1396.     $(SHP)gssetdev appledmp $(appledmp_)
  1397.  
  1398. ### ------------ The Canon BubbleJet BJ10e and BJ200 devices ------------ ###
  1399.  
  1400. bj10e_=gdevbj10.$(OBJ) gdevprn.$(OBJ)
  1401.  
  1402. bj10e.dev: $(bj10e_)
  1403.     $(SHP)gssetdev bj10e $(bj10e_)
  1404.  
  1405. bj200.dev: $(bj10e_)
  1406.     $(SHP)gssetdev bj200 $(bj10e_)
  1407.  
  1408. gdevbj10.$(OBJ): gdevbj10.c $(PDEVH)
  1409.  
  1410. ### -------------------------- The DigiFAX device ----------------------- ###
  1411. ###    This driver outputs images in a format suitable for use with       ###
  1412. ###    DigiBoard, Inc.'s DigiFAX software.  Use -sDEVICE=dfaxhigh for     ###
  1413. ###    high resolution output, -sDEVICE=dfaxlow for normal output.        ###
  1414. ### Note: this driver was contributed by a user: please contact           ###
  1415. ###       Rick Richardson (rick@digibd.com) if you have questions.        ###
  1416.  
  1417. digifax_=gdevdfax.$(OBJ) gdevprn.$(OBJ)
  1418. dfaxhigh.dev: $(digifax_)
  1419.     $(SHP)gssetdev dfaxhigh $(digifax_)
  1420.  
  1421. dfaxlow.dev: $(digifax_)
  1422.     $(SHP)gssetdev dfaxlow $(digifax_)
  1423.  
  1424. gdevdfax.$(OBJ): gdevdfax.c $(GDEV) $(gdevprn_h) gdevdfg3.h
  1425.  
  1426. ### ----------- The H-P DeskJet and LaserJet printer devices ----------- ###
  1427.  
  1428. ### These are essentially the same device.
  1429. ### You can make A4 paper the default: see below.
  1430. ### NOTE: printing at full resolution (300 DPI) requires a printer
  1431. ###   with at least 1.5 Mb of memory.  150 DPI only requires .5 Mb.
  1432.  
  1433. HPPCL=gdevprn.$(OBJ) gdevpcl.$(OBJ)
  1434. HPMONO=gdevdjet.$(OBJ) $(HPPCL)
  1435.  
  1436. gdevpcl.$(OBJ): gdevpcl.c $(PDEVH) $(gdevpcl_h)
  1437.  
  1438. # To make A4 paper the default, change the second line below this to
  1439. #    $(CCC) -DA4 gdevdjet.c
  1440. gdevdjet.$(OBJ): gdevdjet.c $(PDEVH) $(gdevpcl_h)
  1441.  
  1442. deskjet.dev: $(HPMONO)
  1443.     $(SHP)gssetdev deskjet $(HPMONO)
  1444.  
  1445. djet500.dev: $(HPMONO)
  1446.     $(SHP)gssetdev djet500 $(HPMONO)
  1447.  
  1448. laserjet.dev: $(HPMONO)
  1449.     $(SHP)gssetdev laserjet $(HPMONO)
  1450.  
  1451. ljetplus.dev: $(HPMONO)
  1452.     $(SHP)gssetdev ljetplus $(HPMONO)
  1453.  
  1454. ### Selecting ljet2p provides TIFF (mode 2) compression on LaserJet III,
  1455. ### IIIp, IIId, IIIsi, IId, and IIp. 
  1456.  
  1457. ljet2p.dev: $(HPMONO)
  1458.     $(SHP)gssetdev ljet2p $(HPMONO)
  1459.  
  1460. ### Selecting ljet3 provides Delta Row (mode 3) compression on LaserJet III,
  1461. ### IIIp, IIId, IIIsi.
  1462.  
  1463. ljet3.dev: $(HPMONO)
  1464.     $(SHP)gssetdev ljet3 $(HPMONO)
  1465.  
  1466. ###- The H-P DeskJet 500C/550C and PaintJet family color printer devices -###
  1467. ### Note: there are two different 500C drivers, both contributed by users.###
  1468. ###   If you have questions about the djet500c driver,                    ###
  1469. ###       please contact AKayser@et.tudelft.nl.                           ###
  1470. ###   If you have questions about the cdj* drivers,                       ###
  1471. ###       please contact g.cameron@biomed.abdn.ac.uk.                     ###
  1472.  
  1473. cdeskjet_=gdevcdj.$(OBJ) $(HPPCL)
  1474.  
  1475. cdeskjet.dev: $(cdeskjet_)
  1476.     $(SHP)gssetdev cdeskjet $(cdeskjet_)
  1477.  
  1478. cdjcolor.dev: $(cdeskjet_)
  1479.     $(SHP)gssetdev cdjcolor $(cdeskjet_)
  1480.  
  1481. cdjmono.dev: $(cdeskjet_)
  1482.     $(SHP)gssetdev cdjmono $(cdeskjet_)
  1483.  
  1484. cdj500.dev: $(cdeskjet_)
  1485.     $(SHP)gssetdev cdj500 $(cdeskjet_)
  1486.  
  1487. cdj550.dev: $(cdeskjet_)
  1488.     $(SHP)gssetdev cdj550 $(cdeskjet_)
  1489.  
  1490. declj250.dev: $(cdeskjet_)
  1491.     $(SHP)gssetdev declj250 $(cdeskjet_)
  1492.  
  1493. pj.dev: $(cdeskjet_)
  1494.     $(SHP)gssetdev pj $(cdeskjet_)
  1495.  
  1496. pjxl.dev: $(cdeskjet_)
  1497.     $(SHP)gssetdev pjxl $(cdeskjet_)
  1498.  
  1499. pjxl300.dev: $(cdeskjet_)
  1500.     $(SHP)gssetdev pjxl300 $(cdeskjet_)
  1501.  
  1502. # NB: you can also customise the build if required, using -DA4 (for A4 paper)
  1503. # and -DBitsPerPixel=<number> if you wish the default to be other than 24
  1504. # for the generic drivers (cdj500, cdj550, pjxl300, pjtest, pjxltest).
  1505. # E.g,. to make A4 paper the default, change the second line below this to
  1506. #    $(CCC) -DA4 gdevdjet.c
  1507. gdevcdj.$(OBJ): gdevcdj.c $(PDEVH) $(gdevpcl_h)
  1508.  
  1509. djet500c_=gdevdjtc.$(OBJ) $(HPPCL)
  1510. djet500c.dev: $(djet500c_)
  1511.     $(SHP)gssetdev djet500c $(djet500c_)
  1512.  
  1513. gdevdjtc.$(OBJ): gdevdjtc.c $(PDEVH) $(gdevpcl_h)
  1514.  
  1515. ### ----------------- The generic Epson printer device ----------------- ###
  1516.  
  1517. epson_=gdevepsn.$(OBJ) gdevprn.$(OBJ)
  1518.  
  1519. epson.dev: $(epson_)
  1520.     $(SHP)gssetdev epson $(epson_)
  1521.  
  1522. eps9high.dev: $(epson_)
  1523.     $(SHP)gssetdev eps9high $(epson_)
  1524.  
  1525. gdevepsn.$(OBJ): gdevepsn.c $(PDEVH)
  1526.  
  1527. ### ----------------- The IBM Proprinter printer device ---------------- ###
  1528.  
  1529. ibmpro.dev: $(epson_)
  1530.     $(SHP)gssetdev ibmpro $(epson_)
  1531.  
  1532. ### -------------- The Epson LQ-2550 color printer device -------------- ###
  1533. ### Note: this driver was contributed by users: please contact           ###
  1534. ###       Dave St. Clair (dave@exlog.com) if you have questions.         ###
  1535.  
  1536. epsonc_=gdevepsc.$(OBJ) gdevprn.$(OBJ)
  1537. epsonc.dev: $(epsonc_)
  1538.     $(SHP)gssetdev epsonc $(epsonc_)
  1539.  
  1540. gdevepsc.$(OBJ): gdevepsc.c $(PDEVH)
  1541.  
  1542. ### -------------- The Epson ESC/P 2 language printer device ----------- ###
  1543. ### Note: this driver was contributed by a user: if you have questions,  ###
  1544. ###       please contact Richard Brown (rab@tauon.ph.unimelb.edu.au).    ###
  1545.  
  1546. escp2_=gdevescp2.$(OBJ) gdevprn.$(OBJ)
  1547. escp2.dev: $(escp2_)
  1548.     $(SHP)gssetdev escp2 $(escp2_)
  1549.  
  1550. gdevescp2.$(OBJ): gdevescp2.c $(PDEVH)
  1551.  
  1552. ### ------------ The H-P PaintJet color printer device ----------------- ###
  1553. ### Note: this driver also supports the DEC LJ250 color printer, which   ###
  1554. ###       has a PaintJet-compatible mode, and the PaintJet XL.           ###
  1555. ### If you have questions about the XL, please contact Rob Reiss         ###
  1556. ###       (rob@moray.berkeley.edu).                                      ###
  1557.  
  1558. PJET=gdevpjet.$(OBJ) $(HPPCL)
  1559.  
  1560. gdevpjet.$(OBJ): gdevpjet.c $(PDEVH) $(gdevpcl_h)
  1561.  
  1562. lj250.dev: $(PJET)
  1563.     $(SHP)gssetdev lj250 $(PJET)
  1564.  
  1565. paintjet.dev: $(PJET)
  1566.     $(SHP)gssetdev paintjet $(PJET)
  1567.  
  1568. pjetxl.dev: $(PJET)
  1569.     $(SHP)gssetdev pjetxl $(PJET)
  1570.  
  1571. ### ------- The IBM 3852 JetPrinter color inkjet printer device -------- ###
  1572. ### Note: this driver was contributed by users: please contact           ###
  1573. ###       Kevin Gift (kgift@draper.com) if you have questions.           ###
  1574. ### Note that the paper size that can be addressed by the graphics mode  ###
  1575. ###   used in this driver is fixed at 7-1/2 inches wide (the printable   ###
  1576. ###   width of the jetprinter itself.)                                   ###
  1577.  
  1578. jetp3852_=gdev3852.$(OBJ) gdevprn.$(OBJ)
  1579. jetp3852.dev: $(jetp3852_)
  1580.     $(SHP)gssetdev jetp3852 $(jetp3852_)
  1581.  
  1582. gdevjetp.$(OBJ): gdevjetp.c $(PDEVH) $(gdevpcl_h)
  1583.  
  1584. ### ----------------- The Canon LBP-8II printer device ----------------- ###
  1585. ### Note: this driver was contributed by users: please contact           ###
  1586. ###       Tom Quinn (trq@prg.oxford.ac.uk) if you have questions.        ###
  1587. ### Note that the standard paper size for this driver is the European    ###
  1588. ###   A4 size, not the American 8.5" x 11" size.                         ###
  1589.  
  1590. lbp8_=gdevlbp8.$(OBJ) gdevprn.$(OBJ)
  1591. lbp8.dev: $(lbp8_)
  1592.     $(SHP)gssetdev lbp8 $(lbp8_)
  1593.  
  1594. gdevlbp8.$(OBJ): gdevlbp8.c $(PDEVH)
  1595.  
  1596. ### -------------- The DEC LN03/LA50/LA75 printer devices -------------- ###
  1597. ### Note: this driver was contributed by users: please contact           ###
  1598. ###       Ulrich Mueller (ulm@vsnhd1.cern.ch) if you have questions.     ###
  1599. ### For questions about LA50 and LA75: please contact                    ###
  1600. ###       Ian MacPhedran (macphed@dvinci.USask.CA).                     ###
  1601. ### For the LN03, you can make A4 paper the default: see below.          ###
  1602.  
  1603. ln03_=gdevln03.$(OBJ) gdevprn.$(OBJ)
  1604. ln03.dev: $(ln03_)
  1605.     $(SHP)gssetdev ln03 $(ln03_)
  1606.  
  1607. la50.dev: $(ln03_)
  1608.     $(SHP)gssetdev la50 $(ln03_)
  1609.  
  1610. la75.dev: $(ln03_)
  1611.     $(SHP)gssetdev la75 $(ln03_)
  1612.  
  1613. # To make A4 paper the default, change the second line below this to
  1614. #    $(CCC) -DA4 gdevln03.c
  1615. gdevln03.$(OBJ): gdevln03.c $(PDEVH)
  1616.     $(CCC) gdevln03.c
  1617.  
  1618. ### -------------- The C.Itoh M8510 printer device --------------------- ###
  1619. ### Note: this driver was contributed by a user: please contact Bob      ###
  1620. ###       Smith <bob@snuffy.penfield.ny.us> if you have questions.       ###
  1621.  
  1622. m8510_=gdev8510.$(OBJ) gdevprn.$(OBJ)
  1623. m8510.dev: $(m8510_)
  1624.     $(SHP)gssetdev m8510 $(m8510_)
  1625.  
  1626. gdev8510.$(OBJ): gdev8510.c $(PDEVH)
  1627.  
  1628. ### --------------------- The NEC P6 family devices -------------------- ###
  1629.  
  1630. necp6_=gdevnp6.$(OBJ) gdevprn.$(OBJ)
  1631. necp6.dev: $(necp6_)
  1632.     $(SHP)gssetdev necp6 $(necp6_)
  1633.  
  1634. gdevnp6.$(OBJ): gdevnp6.c $(PDEVH)
  1635.  
  1636. ### -------------------- The Atari GEM image device -------------------- ###
  1637. ### Note: this driver was contributed by users:                  ###
  1638. ### please contact haebler@dmswwu1a.uni-muenster.de if you have questions###
  1639.  
  1640. gemimg_=gdevgimg.$(OBJ) gdevprn.$(OBJ)
  1641. gemimg.dev: $(gemimg_)
  1642.     $(SHP)gssetdev gemimg $(gemimg_)
  1643.  
  1644. gdevgimg.$(OBJ): gdevgimg.c $(PDEVH) devs.mak
  1645.  
  1646. ### ----------------- The Okidata MicroLine 182 device ----------------- ###
  1647. ### Note: this driver was contributed by a user: please contact          ###
  1648. ###       Maarten Koning (smeg@bnr.ca) if you have questions.            ###
  1649.  
  1650. oki182_=gdevo182.$(OBJ) gdevprn.$(OBJ)
  1651. oki182.dev: $(oki182_)
  1652.     $(SHP)gssetdev oki182 $(oki182_)
  1653.  
  1654. gdevo182.$(OBJ): gdevo182.c $(PDEVH)
  1655.  
  1656. ### ------------- The Ricoh 4081 laser printer device ------------------ ###
  1657. ### Note: this driver was contributed by users:                          ###
  1658. ###       please contact kdw@oasis.icl.co.uk if you have questions.      ###
  1659.  
  1660. r4081_=gdev4081.$(OBJ) gdevprn.$(OBJ)
  1661. r4081.dev: $(r4081_)
  1662.     $(SHP)gssetdev r4081 $(r4081_)
  1663.  
  1664. gdev4081.$(OBJ): gdev4081.c $(PDEVH)
  1665.  
  1666. ###### ------------------------ Sony devices ------------------------ ######
  1667. ### Note: these drivers were contributed by users: please contact        ###
  1668. ###       Mike Smolenski (mike@intertech.com) if you have questions.     ###
  1669.  
  1670. ### ------------------- Sony NeWS frame buffer device ------------------ ###
  1671.  
  1672. sonyfb_=gdevsnfb.$(OBJ) gdevprn.$(OBJ)
  1673. sonyfb.dev: $(sonyfb_)
  1674.     $(SHP)gssetdev sonyfb $(sonyfb_)
  1675.  
  1676. gdevsnfb.$(OBJ): gdevsnfb.c $(PDEVH)
  1677.  
  1678. ### -------------------- Sony NWP533 printer device -------------------- ###
  1679. ### Note: this driver was contributed by a user: please contact Tero     ###
  1680. ###       Kivinen (kivinen@joker.cs.hut.fi) if you have questions.       ###
  1681.  
  1682. nwp533_=gdevn533.$(OBJ) gdevprn.$(OBJ)
  1683. nwp533.dev: $(nwp533_)
  1684.     $(SHP)gssetdev nwp533 $(nwp533_)
  1685.  
  1686. gdevn533.$(OBJ): gdevn533.c $(PDEVH)
  1687.  
  1688. ### ------------------------- The SPARCprinter ------------------------- ###
  1689. ### Note: this driver was contributed by users: please contact Martin    ###
  1690. ###       Schulte (schulte@thp.uni-koeln.de) if you have questions.      ###
  1691. ###       He would also like to hear from anyone using the driver.       ###
  1692. ### Please consult the source code for additional documentation.         ###
  1693.  
  1694. sparc_=gdevsppr.$(OBJ) gdevprn.$(OBJ)
  1695. sparc.dev: $(sparc_)
  1696.     $(SHP)gssetdev sparc $(sparc_)
  1697.  
  1698. gdevsppr.$(OBJ): gdevsppr.c $(PDEVH)
  1699.  
  1700. ###### --------------------- The SunView device --------------------- ######
  1701. ### Note: this driver is maintained by a user: if you have questions,    ###
  1702. ###       please contact Andreas Stolcke (stolcke@icsi.berkeley.edu).    ###
  1703.  
  1704. sunview_=gdevsun.$(OBJ)
  1705. sunview.dev: $(sunview_)
  1706.     $(SHP)gssetdev sunview $(sunview_)
  1707.     $(SHP)gsaddmod sunview -lib suntool sunwindow pixrect
  1708.  
  1709. gdevsun.$(OBJ): gdevsun.c $(GDEV) $(arch_h)
  1710.  
  1711. ### ----------------- Tektronix 4396d color printer -------------------- ###
  1712. ### Note: this driver was contributed by a user: please contact          ###
  1713. ###       Karl Hakimian (hakimian@haney.eecs.wsu.edu)                    ###
  1714. ###       if you have questions.                                         ###
  1715.  
  1716. t4693d_=gdev4693.$(OBJ) gdevprn.$(OBJ)
  1717. t4693d2.dev: $(t4693d_)
  1718.     $(SHP)gssetdev t4693d2 $(t4693d_)
  1719.  
  1720. t4693d4.dev: $(t4693d_)
  1721.     $(SHP)gssetdev t4693d4 $(t4693d_)
  1722.  
  1723. t4693d8.dev: $(t4693d_)
  1724.     $(SHP)gssetdev t4693d8 $(t4693d_)
  1725.  
  1726. gdev4693.$(OBJ): gdev4693.c $(GDEV)
  1727.  
  1728. ### -------------------- Tektronix ink-jet printers -------------------- ###
  1729. ### Note: this driver was contributed by a user: please contact          ###
  1730. ###       Karsten Spang (spang@nbivax.nbi.dk) if you have questions.     ###
  1731.  
  1732. tek4696_=gdevtknk.$(OBJ) gdevprn.$(OBJ)
  1733. tek4696.dev: $(tek4696_)
  1734.     $(SHP)gssetdev tek4696 $(tek4696_)
  1735.  
  1736. gdevtknk.$(OBJ): gdevtknk.c $(PDEVH)
  1737.  
  1738. ### ----------------- The TruFax facsimile device ---------------------- ###
  1739. ### Note: this driver was contributed by users: please contact           ###
  1740. ###       Neil Ostroff (nao@maestro.bellcore.com) if you have questions. ###
  1741. ### Note that the driver requires a file encode_l.o supplied by the      ###
  1742. ###   makers of the TruFax product.                                      ###
  1743.  
  1744. trufax_=gdevtrfx.$(OBJ) gdevprn.$(OBJ) encode_l.$(OBJ)
  1745. trufax.dev: $(trufax_)
  1746.     $(SHP)gssetdev trufax $(trufax_)
  1747.  
  1748. gdevtrfx.$(OBJ): gdevtrfx.c $(GDEV)
  1749.  
  1750. ###### ----------------------- The X11 device ----------------------- ######
  1751.  
  1752. # Aladdin Enterprises does not support Ghostview.  For more information
  1753. # about Ghostview, please contact Tim Theisen (ghostview@cs.wisc.edu).
  1754.  
  1755. # NOTE: Xmu and Xext are here to keep Sun's dynamic linker happy.  No
  1756. #       routines are used from either of these two libraries.  If you
  1757. #       do not have libXmu.a or libXext.a, simply remove these two lines
  1758. #       from the Makefile.
  1759. x11_=gdevx.$(OBJ) gdevxini.$(OBJ) gdevxxf.$(OBJ) gdevemap.$(OBJ)
  1760. x11.dev: $(x11_)
  1761.     $(SHP)gssetdev x11 $(x11_)
  1762.     $(SHP)gsaddmod x11 -lib Xt Xmu X11 Xext
  1763.  
  1764. # See the main makefile for the definition of XINCLUDE.
  1765. GDEVX=$(GDEV) x_.h gdevx.h $(MAKEFILE)
  1766. gdevx.$(OBJ): gdevx.c $(GDEVX) $(gsprops_h) $(gsutil_h)
  1767.     $(CCC) $(XINCLUDE) gdevx.c
  1768.  
  1769. gdevxini.$(OBJ): gdevxini.c $(GDEVX) $(ctype__h)
  1770.     $(CCC) $(XINCLUDE) gdevxini.c
  1771.  
  1772. gdevxxf.$(OBJ): gdevxxf.c $(GDEVX) $(gsutil_h) $(gxxfont_h)
  1773.     $(CCC) $(XINCLUDE) gdevxxf.c
  1774.  
  1775. ### ---------------------- The bit bucket device ----------------------- ###
  1776.  
  1777. bit_=gdevbit.$(OBJ) gdevprn.$(OBJ)
  1778. bit.dev: $(bit_)
  1779.     $(SHP)gssetdev bit $(bit_)
  1780.  
  1781. gdevbit.$(OBJ): gdevbit.c $(PDEVH)
  1782.  
  1783. ###### ----------------------- PC file formats ---------------------- ######
  1784.  
  1785. gdevpccm.$(OBJ): gdevpccm.c $(AK) \
  1786.   $(gs_h) $(gsmatrix_h) $(gxdevice_h) $(gdevpccm_h)
  1787.  
  1788. ### ------------------------- .BMP file formats ------------------------- ###
  1789.  
  1790. bmp_=gdevbmp.$(OBJ) gdevpccm.$(OBJ) gdevprn.$(OBJ)
  1791.  
  1792. gdevbmp.$(OBJ): gdevbmp.c $(PDEVH) $(gdevpccm_h)
  1793.  
  1794. bmpmono.dev: $(bmp_)
  1795.     $(SHP)gssetdev bmpmono $(bmp_)
  1796.  
  1797. bmp16.dev: $(bmp_)
  1798.     $(SHP)gssetdev bmp16 $(bmp_)
  1799.  
  1800. bmp256.dev: $(bmp_)
  1801.     $(SHP)gssetdev bmp256 $(bmp_)
  1802.  
  1803. bmp16m.dev: $(bmp_)
  1804.     $(SHP)gssetdev bmp16m $(bmp_)
  1805.  
  1806. ### ------------------------- GIF file formats ------------------------- ###
  1807.  
  1808. GIF=gdevgif.$(OBJ) gdevpccm.$(OBJ) gdevprn.$(OBJ)
  1809.  
  1810. gdevgif.$(OBJ): gdevgif.c $(PDEVH) $(gdevpccm_h)
  1811.  
  1812. gifmono.dev: $(GIF)
  1813.     $(SHP)gssetdev gifmono $(GIF)
  1814.  
  1815. gif8.dev: $(GIF)
  1816.     $(SHP)gssetdev gif8 $(GIF)
  1817.  
  1818. ### ------------------------- PCX file formats ------------------------- ###
  1819.  
  1820. pcx_=gdevpcx.$(OBJ) gdevpccm.$(OBJ) gdevprn.$(OBJ)
  1821.  
  1822. gdevpcx.$(OBJ): gdevpcx.c $(PDEVH) $(gdevpccm_h)
  1823.  
  1824. pcxmono.dev: $(pcx_)
  1825.     $(SHP)gssetdev pcxmono $(pcx_)
  1826.  
  1827. pcx16.dev: $(pcx_)
  1828.     $(SHP)gssetdev pcx16 $(pcx_)
  1829.  
  1830. pcx256.dev: $(pcx_)
  1831.     $(SHP)gssetdev pcx256 $(pcx_)
  1832.  
  1833. ###### ------------------- Portable Bitmap devices ------------------ ######
  1834. ### For more information, see the pbm(5), pgm(5), and ppm(5) man pages.  ###
  1835.  
  1836. pxm_=gdevpbm.$(OBJ) gdevprn.$(OBJ)
  1837.  
  1838. gdevpbm.$(OBJ): gdevpbm.c $(PDEVH) $(gxlum_h)
  1839.  
  1840. ### Portable Bitmap (PBM, plain or raw format, magic numbers "P1" or "P4")
  1841.  
  1842. pbm.dev: $(pxm_)
  1843.     $(SHP)gssetdev pbm $(pxm_)
  1844.  
  1845. pbmraw.dev: $(pxm_)
  1846.     $(SHP)gssetdev pbmraw $(pxm_)
  1847.  
  1848. ### Portable Graymap (PGM, plain or raw format, magic numbers "P2" or "P5")
  1849.  
  1850. pgm.dev: $(pxm_)
  1851.     $(SHP)gssetdev pgm $(pxm_)
  1852.  
  1853. pgmraw.dev: $(pxm_)
  1854.     $(SHP)gssetdev pgmraw $(pxm_)
  1855.  
  1856. ### Portable Pixmap (PPM, plain or raw format, magic numbers "P3" or "P6")
  1857.  
  1858. ppm.dev: $(pxm_)
  1859.     $(SHP)gssetdev ppm $(pxm_)
  1860.  
  1861. ppmraw.dev: $(pxm_)
  1862.     $(SHP)gssetdev ppmraw $(pxm_)
  1863.  
  1864. ### -------------------------- TIFF/F device ---------------------------- ###
  1865. ###    This driver outputs images in a TIFF format               ###
  1866. ###    Use -sDEVICE=tiffg3 and                          ###
  1867. ###      -r204x98 for low resolution output, or              ###
  1868. ###      -r204x196 for high resolution output                  ###
  1869. ###    Note also that 3 page sizes are understood: letter, A4, and B4      ###
  1870. ### Note: this driver was contributed by a user: please contact           ###
  1871. ###       Sam Leffler (sam@sgi.com) if you have questions.              ###
  1872.  
  1873. tiffg3_=gdevtiff.$(OBJ) gdevprn.$(OBJ)
  1874. tiffg3.dev: $(tiffg3_)
  1875.     $(SHP)gssetdev tiffg3 $(tiffg3_)
  1876. gdevtiff.$(OBJ): gdevtiff.c $(GDEV) $(gdevprn_h) gdevdfg3.h gdevtiff.h
  1877. #    Copyright (C) 1990, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  1878. #
  1879. # This file is part of Ghostscript.
  1880. #
  1881. # Ghostscript is distributed in the hope that it will be useful, but
  1882. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  1883. # to anyone for the consequences of using it or for whether it serves any
  1884. # particular purpose or works at all, unless he says so in writing.  Refer
  1885. # to the Ghostscript General Public License for full details.
  1886. #
  1887. # Everyone is granted permission to copy, modify and redistribute
  1888. # Ghostscript, but only under the conditions described in the Ghostscript
  1889. # General Public License.  A copy of this license is supposed to have been
  1890. # given to you along with Ghostscript so you can know your rights and
  1891. # responsibilities.  It should be in a file named COPYING.  Among other
  1892. # things, the copyright notice and this notice must be preserved on all
  1893. # copies.
  1894.  
  1895. # Partial makefile for Ghostscript, common to all Unix configurations.
  1896.  
  1897. # This is the last part of the makefile for Unix configurations.
  1898. # Since Unix make doesn't have an 'include' facility, we concatenate
  1899. # the various parts of the makefile together by brute force (in tar_cat).
  1900.  
  1901. # The following prevents GNU make from constructing argument lists that
  1902. # include all environment variables, which can easily be longer than
  1903. # brain-damaged system V allows.
  1904.  
  1905. .NOEXPORT:
  1906.  
  1907. # -------------------------------- Library -------------------------------- #
  1908.  
  1909. ## The Atari platform.
  1910. ## The wstdio device is used to redirect console I/O to a window.
  1911.  
  1912. atari__= gp_atari.$(OBJ) gdevpipe.$(OBJ)
  1913. atari_.dev: $(atari__)
  1914.     $(SHP)gssetmod atari_ $(atari__)
  1915.     $(SHP)gsaddmod atari_ -fdev pipe
  1916.     $(SHP)gsaddmod atari_ -fdev wstdio
  1917.  
  1918. gp_atari.$(OBJ): gp_atari.c gp_atari.h $(AK) $(memory__h) $(string__h) \
  1919.  $(gx_h) $(gp_h) $(stat__h) $(time__h) $(math__h)
  1920.  
  1921. gdevpipe.$(OBJ): gdevpipe.c $(AK) $(stdio__h) $(gstypes_h) \
  1922.   $(filedev_h) $(stream_h)
  1923.  
  1924. # Brain-damaged System V platforms.
  1925. sysv__=gp_nofb.$(OBJ) gp_unix.$(OBJ) gp_sysv.$(OBJ)
  1926. sysv_.dev: $(sysv__)
  1927.     $(SHP)gssetmod sysv_ $(sysv__)
  1928.  
  1929. gp_sysv.$(OBJ): gp_sysv.c $(time__h) $(AK)
  1930.     if ( test -f /usr/include/sys/time.h ) then $(CCC) gp_sysv.c;\
  1931.     else $(CCC) -DNOSYSTIME gp_sysv.c; fi
  1932.  
  1933. # -------------------------- Auxiliary programs --------------------------- #
  1934.  
  1935. ansi2knr$(XE): ansi2knr.c $(stdio__h) $(string__h) $(malloc__h)
  1936.     $(CC) -o ansi2knr$(XE) $(CFLAGS) ansi2knr.c
  1937.  
  1938. echogs$(XE): echogs.c
  1939.     $(CC) -o echogs$(XE) $(CFLAGS) echogs.c
  1940.  
  1941. # On the RS/6000 (at least), compiling genarch.c with gcc with -O
  1942. # produces a buggy executable.
  1943. genarch$(XE): genarch.c
  1944.     $(CC) -o genarch$(XE) genarch.c
  1945.  
  1946. genconf$(XE): genconf.c
  1947.     $(CC) -o genconf$(XE) genconf.c
  1948.  
  1949. # ----------------------------- Main program ------------------------------ #
  1950.  
  1951. BEGINFILES=
  1952. CCBEGIN=$(CCC) *.c
  1953.  
  1954. # Interpreter main program
  1955.  
  1956. GSATARI=gs.$(OBJ) gsmain.$(OBJ) $(INT) $(LIBGS)
  1957.  
  1958. # The second call on echogs writes a \.  This is the only
  1959. # way to do it that works with all flavors of shell!
  1960.  
  1961. $(GS)$(XE): $(GSATARI) ld.tr echogs $(ALL_DEVS)
  1962.     ./echogs -n - $(CC) $(LDFLAGS) $(XLIBDIRS) -o gs.ttp $(GSATARI) >_temp_
  1963.     ./echogs -x 205c >>_temp_
  1964.     cat ld.tr >>_temp_
  1965.     ./echogs - $(EXTRALIBS) -lpml >>_temp_
  1966.     $(SH) <_temp_
  1967.  
  1968. symbol: $(GSATARI) ld.tr echogs $(ALL_DEVS)
  1969.     ./echogs -n - sym-ld -r -o gs.sym g:\\\\gcc\\\\lib\\\\crt0.o $(GSATARI) >_stemp_
  1970.     ./echogs -x 205c >>_stemp_
  1971.     cat ld.tr >>_stemp_
  1972.     ./echogs - $(EXTRALIBS) -lpml >>_stemp_
  1973.     $(SH) <_stemp_
  1974.  
  1975.  
  1976. # Installation
  1977.  
  1978. TAGS:
  1979.     etags -t *.c *.h
  1980.  
  1981. docdir=$(gsdatadir)/doc
  1982. exdir=$(gsdatadir)/examples
  1983.  
  1984. install: gs
  1985.     -mkdir $(bindir)
  1986.     for f in gs gsbj gsdj gslj gslp gsnd bdftops font2c ps2ascii ps2epsi ; do $(INSTALL_PROGRAM) $$f $(bindir)/$$f ; done
  1987.     -mkdir $(datadir)
  1988.     -mkdir $(gsdatadir)
  1989.     for f in README gslp.ps gs_init.ps gs_dps1.ps gs_fonts.ps gs_lev2.ps gs_statd.ps gs_type0.ps gs_sym_e.ps quit.ps Fontmap uglyr.gsf bdftops.ps decrypt.ps font2c.ps impath.ps landscap.ps level1.ps prfont.ps ps2ascii.ps ps2epsi.ps ps2image.ps pstoppm.ps showpage.ps type1ops.ps wrfont.ps ; do $(INSTALL_DATA) $$f $(gsdatadir)/$$f ; done
  1990.     -mkdir $(docdir)
  1991.     for f in NEWS ansi2knr.1 devices.doc drivers.doc fonts.doc gs.1 hershey.doc history.doc humor.doc language.doc lib.doc make.doc ps2epsi.doc psfiles.doc readme.doc use.doc xfonts.doc ; do $(INSTALL_DATA) $$f $(docdir)/$$f ; done
  1992.     -mkdir $(exdir)
  1993.     for f in chess.ps cheq.ps colorcir.ps golfer.ps escher.ps snowflak.ps tiger.ps ; do $(INSTALL_DATA) $$f $(exdir)/$$f ; done
  1994.